From bfa2285cd45136c970cc3d07b1ada56874011c98 Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Fri, 26 Jul 2024 16:23:29 +0200 Subject: [PATCH 1/2] feat: create base class for models and move here utility functions --- fingerprint_pro_server_api_sdk/__init__.py | 2 + fingerprint_pro_server_api_sdk/base_model.py | 56 ++++++++++++++++++ fingerprint_pro_server_api_sdk/models/asn.py | 55 +----------------- .../models/botd_detection_result.py | 55 +----------------- .../models/botd_result.py | 55 +----------------- .../models/browser_details.py | 55 +----------------- .../models/cloned_app_result.py | 55 +----------------- .../models/common403_error_response.py | 55 +----------------- .../models/confidence.py | 55 +----------------- .../models/data_center.py | 55 +----------------- .../models/deprecated_ip_location.py | 55 +----------------- .../models/deprecated_ip_location_city.py | 55 +----------------- .../models/emulator_result.py | 55 +----------------- .../models/error_common403_response.py | 55 +----------------- .../models/error_common429_response.py | 55 +----------------- .../models/error_common429_response_error.py | 55 +----------------- .../models/error_event404_response.py | 55 +----------------- .../models/error_event404_response_error.py | 55 +----------------- .../models/error_update_event400_response.py | 55 +----------------- .../error_update_event400_response_error.py | 55 +----------------- .../models/error_update_event409_response.py | 55 +----------------- .../error_update_event409_response_error.py | 55 +----------------- .../models/error_visitor400_response.py | 55 +----------------- .../models/error_visitor400_response_error.py | 55 +----------------- .../models/error_visitor404_response.py | 55 +----------------- .../models/error_visitor404_response_error.py | 55 +----------------- .../models/error_visits403.py | 55 +----------------- .../models/event_response.py | 55 +----------------- .../models/event_update_request.py | 55 +----------------- .../models/factory_reset_result.py | 55 +----------------- .../models/frida_result.py | 55 +----------------- .../models/high_activity_result.py | 55 +----------------- .../models/identification_error.py | 55 +----------------- .../models/incognito_result.py | 55 +----------------- .../models/ip_block_list_result.py | 55 +----------------- .../models/ip_block_list_result_details.py | 55 +----------------- .../models/ip_info_result.py | 55 +----------------- .../models/ip_info_result_v4.py | 55 +----------------- .../models/ip_info_result_v6.py | 55 +----------------- .../models/ip_location.py | 55 +----------------- .../models/ip_location_city.py | 55 +----------------- .../models/jailbroken_result.py | 55 +----------------- .../models/location.py | 55 +----------------- .../models/location_spoofing_result.py | 55 +----------------- .../models/privacy_settings_result.py | 55 +----------------- .../models/product_error.py | 55 +----------------- .../models/products_response.py | 55 +----------------- .../models/products_response_botd.py | 55 +----------------- .../products_response_identification.py | 55 +----------------- .../products_response_identification_data.py | 55 +----------------- .../models/proxy_result.py | 55 +----------------- .../models/raw_device_attributes_result.py | 55 +----------------- .../models/remote_control_result.py | 55 +----------------- .../models/response.py | 55 +----------------- .../models/response_visits.py | 55 +----------------- .../models/root_apps_result.py | 55 +----------------- .../models/seen_at.py | 55 +----------------- .../models/signal_response_cloned_app.py | 55 +----------------- .../models/signal_response_emulator.py | 55 +----------------- .../models/signal_response_factory_reset.py | 55 +----------------- .../models/signal_response_frida.py | 55 +----------------- .../models/signal_response_high_activity.py | 55 +----------------- .../models/signal_response_incognito.py | 55 +----------------- .../models/signal_response_ip_blocklist.py | 55 +----------------- .../models/signal_response_ip_info.py | 55 +----------------- .../models/signal_response_jailbroken.py | 55 +----------------- .../signal_response_location_spoofing.py | 55 +----------------- .../signal_response_privacy_settings.py | 55 +----------------- .../models/signal_response_proxy.py | 55 +----------------- .../signal_response_raw_device_attributes.py | 55 +----------------- .../models/signal_response_remote_control.py | 55 +----------------- .../models/signal_response_root_apps.py | 55 +----------------- .../models/signal_response_suspect_score.py | 55 +----------------- .../models/signal_response_tampering.py | 55 +----------------- .../models/signal_response_tor.py | 55 +----------------- .../models/signal_response_velocity.py | 55 +----------------- .../models/signal_response_virtual_machine.py | 55 +----------------- .../models/signal_response_vpn.py | 55 +----------------- .../models/subdivision.py | 55 +----------------- .../models/suspect_score_result.py | 55 +----------------- .../models/tampering_result.py | 55 +----------------- .../models/tor_result.py | 55 +----------------- .../models/velocity_interval_result.py | 55 +----------------- .../models/velocity_intervals.py | 55 +----------------- .../models/velocity_result.py | 55 +----------------- .../models/virtual_machine_result.py | 55 +----------------- .../models/visit.py | 55 +----------------- .../models/vpn_result.py | 55 +----------------- .../models/vpn_result_methods.py | 55 +----------------- .../models/webhook_visit.py | 55 +----------------- template/__init__package.mustache | 2 + template/model.mustache | 57 ++----------------- 92 files changed, 328 insertions(+), 4629 deletions(-) create mode 100644 fingerprint_pro_server_api_sdk/base_model.py diff --git a/fingerprint_pro_server_api_sdk/__init__.py b/fingerprint_pro_server_api_sdk/__init__.py index a0ca80e0..8a308737 100644 --- a/fingerprint_pro_server_api_sdk/__init__.py +++ b/fingerprint_pro_server_api_sdk/__init__.py @@ -17,6 +17,8 @@ # import ApiClient from fingerprint_pro_server_api_sdk.api_client import ApiClient from fingerprint_pro_server_api_sdk.configuration import Configuration +# import BaseModel +from fingerprint_pro_server_api_sdk.base_model import BaseModel # import models into sdk package from fingerprint_pro_server_api_sdk.models.asn import ASN from fingerprint_pro_server_api_sdk.models.botd_detection_result import BotdDetectionResult diff --git a/fingerprint_pro_server_api_sdk/base_model.py b/fingerprint_pro_server_api_sdk/base_model.py new file mode 100644 index 00000000..8f114226 --- /dev/null +++ b/fingerprint_pro_server_api_sdk/base_model.py @@ -0,0 +1,56 @@ +import pprint +from typing import Union, Dict + + +class BaseModel: + """Base class for all models with utility methods.""" + + swagger_types: Dict[str, str] = {} + attribute_map: Dict[str, str] = {} + + def to_dict(self) -> Dict[str, Union[list, dict]]: + """Returns the model properties as a dict""" + result = {} + + for attr, _ in self.swagger_types.items(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, Dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + elif value is None: + continue + else: + result[attr] = value + if issubclass(type(self), Dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self) -> str: + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self) -> str: + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, type(self)): + return False + return self.to_dict() == other.to_dict() + + def __ne__(self, other) -> bool: + """Returns true if both objects are not equal""" + return not self.__eq__(other) diff --git a/fingerprint_pro_server_api_sdk/models/asn.py b/fingerprint_pro_server_api_sdk/models/asn.py index 84075e98..ed7d7cb4 100644 --- a/fingerprint_pro_server_api_sdk/models/asn.py +++ b/fingerprint_pro_server_api_sdk/models/asn.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ASN(object): + +class ASN(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -115,53 +116,3 @@ def name(self, name): self._name = name - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ASN, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ASN): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ASN): - return True - - return self.to_dict() != other.to_dict() 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 fe0a456d..5820c0ba 100644 --- a/fingerprint_pro_server_api_sdk/models/botd_detection_result.py +++ b/fingerprint_pro_server_api_sdk/models/botd_detection_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class BotdDetectionResult(object): + +class BotdDetectionResult(BaseModel): """ Stores bot detection result @@ -99,53 +100,3 @@ def type(self, type): self._type = type - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(BotdDetectionResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BotdDetectionResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, BotdDetectionResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/botd_result.py b/fingerprint_pro_server_api_sdk/models/botd_result.py index 31e45e67..c4f8f6c2 100644 --- a/fingerprint_pro_server_api_sdk/models/botd_result.py +++ b/fingerprint_pro_server_api_sdk/models/botd_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class BotdResult(object): + +class BotdResult(BaseModel): """ Contains all the information from Bot Detection product @@ -232,53 +233,3 @@ def bot(self, bot): self._bot = bot - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(BotdResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BotdResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, BotdResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/browser_details.py b/fingerprint_pro_server_api_sdk/models/browser_details.py index d359af86..2c502de7 100644 --- a/fingerprint_pro_server_api_sdk/models/browser_details.py +++ b/fingerprint_pro_server_api_sdk/models/browser_details.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class BrowserDetails(object): + +class BrowserDetails(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -250,53 +251,3 @@ def bot_probability(self, bot_probability): self._bot_probability = bot_probability - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(BrowserDetails, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BrowserDetails): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, BrowserDetails): - return True - - return self.to_dict() != other.to_dict() 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 07392e2a..13b43c58 100644 --- a/fingerprint_pro_server_api_sdk/models/cloned_app_result.py +++ b/fingerprint_pro_server_api_sdk/models/cloned_app_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ClonedAppResult(object): + +class ClonedAppResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ClonedAppResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ClonedAppResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ClonedAppResult): - return True - - return self.to_dict() != other.to_dict() 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 1f1a5fbf..de2e1984 100644 --- a/fingerprint_pro_server_api_sdk/models/common403_error_response.py +++ b/fingerprint_pro_server_api_sdk/models/common403_error_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class Common403ErrorResponse(object): + +class Common403ErrorResponse(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(Common403ErrorResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Common403ErrorResponse): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, Common403ErrorResponse): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/confidence.py b/fingerprint_pro_server_api_sdk/models/confidence.py index 7cd9184a..4d8a2cf9 100644 --- a/fingerprint_pro_server_api_sdk/models/confidence.py +++ b/fingerprint_pro_server_api_sdk/models/confidence.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class Confidence(object): + +class Confidence(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -92,53 +93,3 @@ def revision(self, revision): self._revision = revision - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(Confidence, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Confidence): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, Confidence): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/data_center.py b/fingerprint_pro_server_api_sdk/models/data_center.py index 671f8010..375c3380 100644 --- a/fingerprint_pro_server_api_sdk/models/data_center.py +++ b/fingerprint_pro_server_api_sdk/models/data_center.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class DataCenter(object): + +class DataCenter(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -88,53 +89,3 @@ def name(self, name): self._name = name - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(DataCenter, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DataCenter): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, DataCenter): - return True - - return self.to_dict() != other.to_dict() 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 7b79f68e..c7f48f2b 100644 --- a/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py +++ b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class DeprecatedIPLocation(object): + +class DeprecatedIPLocation(BaseModel): """ This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. @@ -274,53 +275,3 @@ def subdivisions(self, subdivisions): self._subdivisions = subdivisions - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(DeprecatedIPLocation, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DeprecatedIPLocation): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, DeprecatedIPLocation): - return True - - return self.to_dict() != other.to_dict() 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 17bd4037..6e64ca86 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class DeprecatedIPLocationCity(object): + +class DeprecatedIPLocationCity(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def name(self, name): self._name = name - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(DeprecatedIPLocationCity, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DeprecatedIPLocationCity): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, DeprecatedIPLocationCity): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/emulator_result.py b/fingerprint_pro_server_api_sdk/models/emulator_result.py index e2e2b1d4..b67bf3ae 100644 --- a/fingerprint_pro_server_api_sdk/models/emulator_result.py +++ b/fingerprint_pro_server_api_sdk/models/emulator_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class EmulatorResult(object): + +class EmulatorResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(EmulatorResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EmulatorResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, EmulatorResult): - return True - - return self.to_dict() != other.to_dict() 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 ce010e6f..8ca06772 100644 --- a/fingerprint_pro_server_api_sdk/models/error_common403_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_common403_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorCommon403Response(object): + +class ErrorCommon403Response(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorCommon403Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorCommon403Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorCommon403Response): - return True - - return self.to_dict() != other.to_dict() 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 84c162cf..cee323b4 100644 --- a/fingerprint_pro_server_api_sdk/models/error_common429_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_common429_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorCommon429Response(object): + +class ErrorCommon429Response(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorCommon429Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorCommon429Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorCommon429Response): - return True - - return self.to_dict() != other.to_dict() 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 7d7a8b4f..f32f886a 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorCommon429ResponseError(object): + +class ErrorCommon429ResponseError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorCommon429ResponseError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorCommon429ResponseError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorCommon429ResponseError): - return True - - return self.to_dict() != other.to_dict() 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 9a37f18f..183b57de 100644 --- a/fingerprint_pro_server_api_sdk/models/error_event404_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_event404_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorEvent404Response(object): + +class ErrorEvent404Response(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorEvent404Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorEvent404Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorEvent404Response): - return True - - return self.to_dict() != other.to_dict() 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 02f112c9..3f8af6bc 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorEvent404ResponseError(object): + +class ErrorEvent404ResponseError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorEvent404ResponseError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorEvent404ResponseError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorEvent404ResponseError): - return True - - return self.to_dict() != other.to_dict() 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 b2bb8ce3..0563363b 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorUpdateEvent400Response(object): + +class ErrorUpdateEvent400Response(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorUpdateEvent400Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorUpdateEvent400Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorUpdateEvent400Response): - return True - - return self.to_dict() != other.to_dict() 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 a7e63c46..70a6ef03 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorUpdateEvent400ResponseError(object): + +class ErrorUpdateEvent400ResponseError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -99,53 +100,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorUpdateEvent400ResponseError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorUpdateEvent400ResponseError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorUpdateEvent400ResponseError): - return True - - return self.to_dict() != other.to_dict() 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 756e212b..6bd20025 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorUpdateEvent409Response(object): + +class ErrorUpdateEvent409Response(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorUpdateEvent409Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorUpdateEvent409Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorUpdateEvent409Response): - return True - - return self.to_dict() != other.to_dict() 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 80cf02a6..cbe174ff 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorUpdateEvent409ResponseError(object): + +class ErrorUpdateEvent409ResponseError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorUpdateEvent409ResponseError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorUpdateEvent409ResponseError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorUpdateEvent409ResponseError): - return True - - return self.to_dict() != other.to_dict() 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 7c07f080..fd4b89c3 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visitor400_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_visitor400_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorVisitor400Response(object): + +class ErrorVisitor400Response(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorVisitor400Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorVisitor400Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorVisitor400Response): - return True - - return self.to_dict() != other.to_dict() 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 33bd5430..6805d4ce 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorVisitor400ResponseError(object): + +class ErrorVisitor400ResponseError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorVisitor400ResponseError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorVisitor400ResponseError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorVisitor400ResponseError): - return True - - return self.to_dict() != other.to_dict() 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 0b3d30da..a75e3be7 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visitor404_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_visitor404_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorVisitor404Response(object): + +class ErrorVisitor404Response(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorVisitor404Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorVisitor404Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorVisitor404Response): - return True - - return self.to_dict() != other.to_dict() 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 482cff63..709181f8 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorVisitor404ResponseError(object): + +class ErrorVisitor404ResponseError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorVisitor404ResponseError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorVisitor404ResponseError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorVisitor404ResponseError): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/error_visits403.py b/fingerprint_pro_server_api_sdk/models/error_visits403.py index d0b48d5f..3e182eb8 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visits403.py +++ b/fingerprint_pro_server_api_sdk/models/error_visits403.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ErrorVisits403(object): + +class ErrorVisits403(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ErrorVisits403, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorVisits403): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ErrorVisits403): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/event_response.py b/fingerprint_pro_server_api_sdk/models/event_response.py index c8a80d05..3b431f49 100644 --- a/fingerprint_pro_server_api_sdk/models/event_response.py +++ b/fingerprint_pro_server_api_sdk/models/event_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class EventResponse(object): + +class EventResponse(BaseModel): """ Contains results from all activated products - Fingerprint Pro, Bot Detection, and others. @@ -91,53 +92,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(EventResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventResponse): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, EventResponse): - return True - - return self.to_dict() != other.to_dict() 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 9ec4313c..ce5e6d71 100644 --- a/fingerprint_pro_server_api_sdk/models/event_update_request.py +++ b/fingerprint_pro_server_api_sdk/models/event_update_request.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class EventUpdateRequest(object): + +class EventUpdateRequest(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -119,53 +120,3 @@ def suspect(self, suspect): self._suspect = suspect - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(EventUpdateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventUpdateRequest): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, EventUpdateRequest): - return True - - return self.to_dict() != other.to_dict() 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 e5148d2d..0a27af7a 100644 --- a/fingerprint_pro_server_api_sdk/models/factory_reset_result.py +++ b/fingerprint_pro_server_api_sdk/models/factory_reset_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class FactoryResetResult(object): + +class FactoryResetResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -93,53 +94,3 @@ def timestamp(self, timestamp): self._timestamp = timestamp - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(FactoryResetResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FactoryResetResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, FactoryResetResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/frida_result.py b/fingerprint_pro_server_api_sdk/models/frida_result.py index fa710e65..cf1edaa6 100644 --- a/fingerprint_pro_server_api_sdk/models/frida_result.py +++ b/fingerprint_pro_server_api_sdk/models/frida_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class FridaResult(object): + +class FridaResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(FridaResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FridaResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, FridaResult): - return True - - return self.to_dict() != other.to_dict() 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 43641397..76bf2df3 100644 --- a/fingerprint_pro_server_api_sdk/models/high_activity_result.py +++ b/fingerprint_pro_server_api_sdk/models/high_activity_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class HighActivityResult(object): + +class HighActivityResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -92,53 +93,3 @@ def daily_requests(self, daily_requests): self._daily_requests = daily_requests - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(HighActivityResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, HighActivityResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, HighActivityResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/identification_error.py b/fingerprint_pro_server_api_sdk/models/identification_error.py index 3cca5b29..647e3c55 100644 --- a/fingerprint_pro_server_api_sdk/models/identification_error.py +++ b/fingerprint_pro_server_api_sdk/models/identification_error.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IdentificationError(object): + +class IdentificationError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IdentificationError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IdentificationError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IdentificationError): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/incognito_result.py b/fingerprint_pro_server_api_sdk/models/incognito_result.py index dc72a692..f6826e3f 100644 --- a/fingerprint_pro_server_api_sdk/models/incognito_result.py +++ b/fingerprint_pro_server_api_sdk/models/incognito_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IncognitoResult(object): + +class IncognitoResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IncognitoResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IncognitoResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IncognitoResult): - return True - - return self.to_dict() != other.to_dict() 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 1b8e10d9..617a1a43 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IpBlockListResult(object): + +class IpBlockListResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -91,53 +92,3 @@ def details(self, details): self._details = details - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IpBlockListResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IpBlockListResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IpBlockListResult): - return True - - return self.to_dict() != other.to_dict() 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 f6ba2cbd..1e55ab6c 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IpBlockListResultDetails(object): + +class IpBlockListResultDetails(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -93,53 +94,3 @@ def attack_source(self, attack_source): self._attack_source = attack_source - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IpBlockListResultDetails, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IpBlockListResultDetails): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IpBlockListResultDetails): - return True - - return self.to_dict() != other.to_dict() 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 cc441b33..881c119d 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_info_result.py +++ b/fingerprint_pro_server_api_sdk/models/ip_info_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IpInfoResult(object): + +class IpInfoResult(BaseModel): """ Details about the request IP address. Has separate fields for v4 and v6 IP address versions. @@ -90,53 +91,3 @@ def v6(self, v6): self._v6 = v6 - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IpInfoResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IpInfoResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IpInfoResult): - return True - - return self.to_dict() != other.to_dict() 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 53f3973d..e0519d1e 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IpInfoResultV4(object): + +class IpInfoResultV4(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -141,53 +142,3 @@ def datacenter(self, datacenter): self._datacenter = datacenter - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IpInfoResultV4, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IpInfoResultV4): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IpInfoResultV4): - return True - - return self.to_dict() != other.to_dict() 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 60df40a9..835a3702 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IpInfoResultV6(object): + +class IpInfoResultV6(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -141,53 +142,3 @@ def datacenter(self, datacenter): self._datacenter = datacenter - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IpInfoResultV6, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IpInfoResultV6): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IpInfoResultV6): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/ip_location.py b/fingerprint_pro_server_api_sdk/models/ip_location.py index 5cde3ab4..3600344c 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_location.py +++ b/fingerprint_pro_server_api_sdk/models/ip_location.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IPLocation(object): + +class IPLocation(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -271,53 +272,3 @@ def subdivisions(self, subdivisions): self._subdivisions = subdivisions - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IPLocation, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IPLocation): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IPLocation): - return True - - return self.to_dict() != other.to_dict() 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 57562071..9d456de6 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_location_city.py +++ b/fingerprint_pro_server_api_sdk/models/ip_location_city.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class IPLocationCity(object): + +class IPLocationCity(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def name(self, name): self._name = name - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(IPLocationCity, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IPLocationCity): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, IPLocationCity): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/jailbroken_result.py b/fingerprint_pro_server_api_sdk/models/jailbroken_result.py index 94c2e732..c1d62d53 100644 --- a/fingerprint_pro_server_api_sdk/models/jailbroken_result.py +++ b/fingerprint_pro_server_api_sdk/models/jailbroken_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class JailbrokenResult(object): + +class JailbrokenResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(JailbrokenResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, JailbrokenResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, JailbrokenResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/location.py b/fingerprint_pro_server_api_sdk/models/location.py index f08a4a7b..1461b75f 100644 --- a/fingerprint_pro_server_api_sdk/models/location.py +++ b/fingerprint_pro_server_api_sdk/models/location.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class Location(object): + +class Location(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -89,53 +90,3 @@ def name(self, name): self._name = name - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(Location, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Location): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, Location): - return True - - return self.to_dict() != other.to_dict() 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 5dafd78b..3ab10f84 100644 --- a/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py +++ b/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class LocationSpoofingResult(object): + +class LocationSpoofingResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(LocationSpoofingResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LocationSpoofingResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, LocationSpoofingResult): - return True - - return self.to_dict() != other.to_dict() 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 00ec12e1..03f02874 100644 --- a/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py +++ b/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class PrivacySettingsResult(object): + +class PrivacySettingsResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(PrivacySettingsResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, PrivacySettingsResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, PrivacySettingsResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/product_error.py b/fingerprint_pro_server_api_sdk/models/product_error.py index cc832b52..ba29bc81 100644 --- a/fingerprint_pro_server_api_sdk/models/product_error.py +++ b/fingerprint_pro_server_api_sdk/models/product_error.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ProductError(object): + +class ProductError(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -97,53 +98,3 @@ def message(self, message): self._message = message - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ProductError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProductError): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ProductError): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/products_response.py b/fingerprint_pro_server_api_sdk/models/products_response.py index 01e97907..851b2ce6 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response.py +++ b/fingerprint_pro_server_api_sdk/models/products_response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ProductsResponse(object): + +class ProductsResponse(BaseModel): """ Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise) @@ -636,53 +637,3 @@ def velocity(self, velocity): self._velocity = velocity - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ProductsResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProductsResponse): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ProductsResponse): - return True - - return self.to_dict() != other.to_dict() 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 634c726d..1fa6d18c 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response_botd.py +++ b/fingerprint_pro_server_api_sdk/models/products_response_botd.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ProductsResponseBotd(object): + +class ProductsResponseBotd(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ProductsResponseBotd, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProductsResponseBotd): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ProductsResponseBotd): - return True - - return self.to_dict() != other.to_dict() 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 715384cd..a8c0c87a 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response_identification.py +++ b/fingerprint_pro_server_api_sdk/models/products_response_identification.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ProductsResponseIdentification(object): + +class ProductsResponseIdentification(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ProductsResponseIdentification, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProductsResponseIdentification): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ProductsResponseIdentification): - return True - - return self.to_dict() != other.to_dict() 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 f83f813c..2579cc83 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ProductsResponseIdentificationData(object): + +class ProductsResponseIdentificationData(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -455,53 +456,3 @@ def visitor_id(self, visitor_id): self._visitor_id = visitor_id - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ProductsResponseIdentificationData, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProductsResponseIdentificationData): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ProductsResponseIdentificationData): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/proxy_result.py b/fingerprint_pro_server_api_sdk/models/proxy_result.py index 7cc4c51c..324ad3cb 100644 --- a/fingerprint_pro_server_api_sdk/models/proxy_result.py +++ b/fingerprint_pro_server_api_sdk/models/proxy_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ProxyResult(object): + +class ProxyResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ProxyResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProxyResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ProxyResult): - return True - - return self.to_dict() != other.to_dict() 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 24136965..32152dc3 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class RawDeviceAttributesResult(object): + +class RawDeviceAttributesResult(BaseModel): """ It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. @@ -38,53 +39,3 @@ def __init__(self): # noqa: E501 """RawDeviceAttributesResult - a model defined in Swagger""" # noqa: E501 self.discriminator = None - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(RawDeviceAttributesResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RawDeviceAttributesResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, RawDeviceAttributesResult): - return True - - return self.to_dict() != other.to_dict() 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 ce208f19..692c897d 100644 --- a/fingerprint_pro_server_api_sdk/models/remote_control_result.py +++ b/fingerprint_pro_server_api_sdk/models/remote_control_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class RemoteControlResult(object): + +class RemoteControlResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(RemoteControlResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RemoteControlResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, RemoteControlResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/response.py b/fingerprint_pro_server_api_sdk/models/response.py index 6a32706a..88a6b1b0 100644 --- a/fingerprint_pro_server_api_sdk/models/response.py +++ b/fingerprint_pro_server_api_sdk/models/response.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class Response(object): + +class Response(BaseModel): """ Fields `lastTimestamp` and `paginationKey` added when `limit` or `before` parameter provided and there is more data to show @@ -148,53 +149,3 @@ def pagination_key(self, pagination_key): self._pagination_key = pagination_key - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(Response, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Response): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, Response): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/response_visits.py b/fingerprint_pro_server_api_sdk/models/response_visits.py index cb49b8ed..6b556430 100644 --- a/fingerprint_pro_server_api_sdk/models/response_visits.py +++ b/fingerprint_pro_server_api_sdk/models/response_visits.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class ResponseVisits(object): + +class ResponseVisits(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -426,53 +427,3 @@ def last_seen_at(self, last_seen_at): self._last_seen_at = last_seen_at - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(ResponseVisits, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ResponseVisits): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, ResponseVisits): - return True - - return self.to_dict() != other.to_dict() 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 cefc0ffe..a161aff9 100644 --- a/fingerprint_pro_server_api_sdk/models/root_apps_result.py +++ b/fingerprint_pro_server_api_sdk/models/root_apps_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class RootAppsResult(object): + +class RootAppsResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(RootAppsResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RootAppsResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, RootAppsResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/seen_at.py b/fingerprint_pro_server_api_sdk/models/seen_at.py index 454d8591..067e4fc9 100644 --- a/fingerprint_pro_server_api_sdk/models/seen_at.py +++ b/fingerprint_pro_server_api_sdk/models/seen_at.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SeenAt(object): + +class SeenAt(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -85,53 +86,3 @@ def subscription(self, subscription): self._subscription = subscription - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SeenAt, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SeenAt): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SeenAt): - return True - - return self.to_dict() != other.to_dict() 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 295e62f0..c9484466 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseClonedApp(object): + +class SignalResponseClonedApp(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseClonedApp, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseClonedApp): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseClonedApp): - return True - - return self.to_dict() != other.to_dict() 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 01361e0e..136355b0 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_emulator.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_emulator.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseEmulator(object): + +class SignalResponseEmulator(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseEmulator, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseEmulator): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseEmulator): - return True - - return self.to_dict() != other.to_dict() 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 64eb8951..669bd606 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseFactoryReset(object): + +class SignalResponseFactoryReset(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseFactoryReset, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseFactoryReset): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseFactoryReset): - return True - - return self.to_dict() != other.to_dict() 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 1b18e6f3..50f2fe2c 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_frida.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_frida.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseFrida(object): + +class SignalResponseFrida(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseFrida, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseFrida): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseFrida): - return True - - return self.to_dict() != other.to_dict() 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 c1099698..bb42fdd6 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseHighActivity(object): + +class SignalResponseHighActivity(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseHighActivity, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseHighActivity): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseHighActivity): - return True - - return self.to_dict() != other.to_dict() 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 1edf7381..b7e9ccb4 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_incognito.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_incognito.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseIncognito(object): + +class SignalResponseIncognito(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseIncognito, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseIncognito): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseIncognito): - return True - - return self.to_dict() != other.to_dict() 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 f65425a6..970d08b4 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseIpBlocklist(object): + +class SignalResponseIpBlocklist(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseIpBlocklist, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseIpBlocklist): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseIpBlocklist): - return True - - return self.to_dict() != other.to_dict() 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 ce5157ab..62ae1afb 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseIpInfo(object): + +class SignalResponseIpInfo(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseIpInfo, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseIpInfo): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseIpInfo): - return True - - return self.to_dict() != other.to_dict() 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 da2a18c5..61158c87 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_jailbroken.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_jailbroken.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseJailbroken(object): + +class SignalResponseJailbroken(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseJailbroken, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseJailbroken): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseJailbroken): - return True - - return self.to_dict() != other.to_dict() 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 0419f43d..c693ab61 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseLocationSpoofing(object): + +class SignalResponseLocationSpoofing(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseLocationSpoofing, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseLocationSpoofing): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseLocationSpoofing): - return True - - return self.to_dict() != other.to_dict() 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 97dadd80..787756c6 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponsePrivacySettings(object): + +class SignalResponsePrivacySettings(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponsePrivacySettings, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponsePrivacySettings): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponsePrivacySettings): - return True - - return self.to_dict() != other.to_dict() 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 c44411aa..28a87e30 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_proxy.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_proxy.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseProxy(object): + +class SignalResponseProxy(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseProxy, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseProxy): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseProxy): - return True - - return self.to_dict() != other.to_dict() 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 fe1efb6b..a36a875e 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseRawDeviceAttributes(object): + +class SignalResponseRawDeviceAttributes(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseRawDeviceAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseRawDeviceAttributes): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseRawDeviceAttributes): - return True - - return self.to_dict() != other.to_dict() 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 39b92999..4ef72860 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseRemoteControl(object): + +class SignalResponseRemoteControl(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseRemoteControl, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseRemoteControl): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseRemoteControl): - return True - - return self.to_dict() != other.to_dict() 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 6c7fa5e8..c8713f37 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseRootApps(object): + +class SignalResponseRootApps(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseRootApps, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseRootApps): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseRootApps): - return True - - return self.to_dict() != other.to_dict() 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 502429de..3d83444e 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseSuspectScore(object): + +class SignalResponseSuspectScore(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseSuspectScore, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseSuspectScore): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseSuspectScore): - return True - - return self.to_dict() != other.to_dict() 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 cf706a4e..5299c237 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_tampering.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_tampering.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseTampering(object): + +class SignalResponseTampering(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseTampering, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseTampering): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseTampering): - return True - - return self.to_dict() != other.to_dict() 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 52c0cfc9..264fc08d 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_tor.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_tor.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseTor(object): + +class SignalResponseTor(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseTor, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseTor): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseTor): - return True - - return self.to_dict() != other.to_dict() 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 34b26ce0..0cb3b6a8 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_velocity.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_velocity.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseVelocity(object): + +class SignalResponseVelocity(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseVelocity, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseVelocity): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseVelocity): - return True - - return self.to_dict() != other.to_dict() 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 63470299..88650e98 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 @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseVirtualMachine(object): + +class SignalResponseVirtualMachine(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseVirtualMachine, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseVirtualMachine): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseVirtualMachine): - return True - - return self.to_dict() != other.to_dict() 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 4f6a4ee9..34ffb1e0 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_vpn.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_vpn.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SignalResponseVpn(object): + +class SignalResponseVpn(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def error(self, error): self._error = error - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SignalResponseVpn, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignalResponseVpn): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SignalResponseVpn): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/subdivision.py b/fingerprint_pro_server_api_sdk/models/subdivision.py index 3fa45d91..f92e1f11 100644 --- a/fingerprint_pro_server_api_sdk/models/subdivision.py +++ b/fingerprint_pro_server_api_sdk/models/subdivision.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class Subdivision(object): + +class Subdivision(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,53 +88,3 @@ def name(self, name): self._name = name - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(Subdivision, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Subdivision): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, Subdivision): - return True - - return self.to_dict() != other.to_dict() 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 21ce3158..8c922cb3 100644 --- a/fingerprint_pro_server_api_sdk/models/suspect_score_result.py +++ b/fingerprint_pro_server_api_sdk/models/suspect_score_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class SuspectScoreResult(object): + +class SuspectScoreResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(SuspectScoreResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SuspectScoreResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, SuspectScoreResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/tampering_result.py b/fingerprint_pro_server_api_sdk/models/tampering_result.py index ec3a8c73..13fa881f 100644 --- a/fingerprint_pro_server_api_sdk/models/tampering_result.py +++ b/fingerprint_pro_server_api_sdk/models/tampering_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class TamperingResult(object): + +class TamperingResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -93,53 +94,3 @@ def anomaly_score(self, anomaly_score): self._anomaly_score = anomaly_score - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(TamperingResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TamperingResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, TamperingResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/tor_result.py b/fingerprint_pro_server_api_sdk/models/tor_result.py index c375ee00..0783ac1d 100644 --- a/fingerprint_pro_server_api_sdk/models/tor_result.py +++ b/fingerprint_pro_server_api_sdk/models/tor_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class TorResult(object): + +class TorResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(TorResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TorResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, TorResult): - return True - - return self.to_dict() != other.to_dict() 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 1c685dd3..2209e35b 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class VelocityIntervalResult(object): + +class VelocityIntervalResult(BaseModel): """ Is absent if the velocity data could not be generated for the visitor ID. @@ -120,53 +121,3 @@ def _24h(self, _24h): self.__24h = _24h - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(VelocityIntervalResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, VelocityIntervalResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, VelocityIntervalResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/velocity_intervals.py b/fingerprint_pro_server_api_sdk/models/velocity_intervals.py index d08682d9..7b16ef9a 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_intervals.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_intervals.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class VelocityIntervals(object): + +class VelocityIntervals(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,53 +62,3 @@ def intervals(self, intervals): self._intervals = intervals - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(VelocityIntervals, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, VelocityIntervals): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, VelocityIntervals): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/velocity_result.py b/fingerprint_pro_server_api_sdk/models/velocity_result.py index 5b88c31a..e917c0ac 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_result.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class VelocityResult(object): + +class VelocityResult(BaseModel): """ Sums key data points for a specific `visitorId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of identification events attributed to the visitor ID - Number of distinct IP addresses associated to the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of distinct `linkedId`s associated with the visitor ID. 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. @@ -146,53 +147,3 @@ def events(self, events): self._events = events - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(VelocityResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, VelocityResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, VelocityResult): - return True - - return self.to_dict() != other.to_dict() 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 841342c8..915c385e 100644 --- a/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py +++ b/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class VirtualMachineResult(object): + +class VirtualMachineResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,53 +65,3 @@ def result(self, result): self._result = result - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(VirtualMachineResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, VirtualMachineResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, VirtualMachineResult): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/visit.py b/fingerprint_pro_server_api_sdk/models/visit.py index 1801a567..f2d19782 100644 --- a/fingerprint_pro_server_api_sdk/models/visit.py +++ b/fingerprint_pro_server_api_sdk/models/visit.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class Visit(object): + +class Visit(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -426,53 +427,3 @@ def last_seen_at(self, last_seen_at): self._last_seen_at = last_seen_at - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(Visit, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, Visit): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, Visit): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/vpn_result.py b/fingerprint_pro_server_api_sdk/models/vpn_result.py index a13f1cfa..db2045f9 100644 --- a/fingerprint_pro_server_api_sdk/models/vpn_result.py +++ b/fingerprint_pro_server_api_sdk/models/vpn_result.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class VpnResult(object): + +class VpnResult(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -148,53 +149,3 @@ def methods(self, methods): self._methods = methods - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(VpnResult, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, VpnResult): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, VpnResult): - return True - - return self.to_dict() != other.to_dict() 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 6003f722..966340ac 100644 --- a/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py +++ b/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class VpnResultMethods(object): + +class VpnResultMethods(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -151,53 +152,3 @@ def os_mismatch(self, os_mismatch): self._os_mismatch = os_mismatch - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(VpnResultMethods, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, VpnResultMethods): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, VpnResultMethods): - return True - - return self.to_dict() != other.to_dict() diff --git a/fingerprint_pro_server_api_sdk/models/webhook_visit.py b/fingerprint_pro_server_api_sdk/models/webhook_visit.py index 50338605..785b1c08 100644 --- a/fingerprint_pro_server_api_sdk/models/webhook_visit.py +++ b/fingerprint_pro_server_api_sdk/models/webhook_visit.py @@ -10,10 +10,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ -import pprint import re # noqa: F401 +from fingerprint_pro_server_api_sdk.base_model import BaseModel -class WebhookVisit(object): + +class WebhookVisit(BaseModel): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -1051,53 +1052,3 @@ def last_seen_at(self, last_seen_at): self._last_seen_at = last_seen_at - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass(WebhookVisit, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, WebhookVisit): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, WebhookVisit): - return True - - return self.to_dict() != other.to_dict() diff --git a/template/__init__package.mustache b/template/__init__package.mustache index 761b6972..07b89a6e 100644 --- a/template/__init__package.mustache +++ b/template/__init__package.mustache @@ -10,6 +10,8 @@ # import ApiClient from {{packageName}}.api_client import ApiClient from {{packageName}}.configuration import Configuration +# import BaseModel +from {{packageName}}.base_model import BaseModel # import models into sdk package {{#models}}{{#model}}from {{modelPackage}}.{{classFilename}} import {{classname}} {{/model}}{{/models}} diff --git a/template/model.mustache b/template/model.mustache index 6dbebf9e..7075e554 100644 --- a/template/model.mustache +++ b/template/model.mustache @@ -2,12 +2,13 @@ {{>partial_header}} -import pprint import re # noqa: F401 - +from {{packageName}}.base_model import BaseModel {{#models}} {{#model}} -class {{classname}}(object): + + +class {{classname}}(BaseModel): """{{#description}} {{{.}}} @@ -171,55 +172,5 @@ class {{classname}}(object): return self.discriminator_value_class_map.get(discriminator_value) {{/discriminator}} - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in self.swagger_types.items(): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - elif value is None: - continue - else: - result[attr] = value - if issubclass({{classname}}, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, {{classname}}): - return False - - return self.to_dict() == other.to_dict() - - def __ne__(self, other): - """Returns true if both objects are not equal""" - if not isinstance(other, {{classname}}): - return True - - return self.to_dict() != other.to_dict() {{/model}} {{/models}} From 31bee67dbc98e151379e202d637e17a8d2c9cd35 Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Fri, 26 Jul 2024 16:41:03 +0200 Subject: [PATCH 2/2] test: add tests for `BaseModel` --- test/test_base_model.py | 123 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 test/test_base_model.py diff --git a/test/test_base_model.py b/test/test_base_model.py new file mode 100644 index 00000000..520bd6cd --- /dev/null +++ b/test/test_base_model.py @@ -0,0 +1,123 @@ +import pprint +import unittest +from typing import Dict + +from fingerprint_pro_server_api_sdk import BaseModel + + +class ExampleModel(BaseModel): + """Example model that inherits from BaseModel for testing purposes.""" + swagger_types: Dict[str, str] = { + 'name': 'str', + 'details': 'dict', + 'items': 'list', + 'sub_model': 'object' + } + + attribute_map: Dict[str, str] = { + 'name': 'name', + 'details': 'details', + 'items': 'items', + 'sub_model': 'sub_model' + } + + def __init__(self, name=None, details=None, items=None, sub_model=None): + self.name = name + self.details = details + self.items = items + self.sub_model = sub_model + + +class SubModel(BaseModel): + """SubModel to be used in ExampleModel.""" + swagger_types: Dict[str, str] = { + 'id': 'int', + 'value': 'str' + } + + attribute_map: Dict[str, str] = { + 'id': 'id', + 'value': 'value' + } + + def __init__(self, id=None, value=None): + self.id = id + self.value = value + + +class MyTestCase(unittest.TestCase): + + def setUp(self): + """Set up test fixtures.""" + self.sub_model = SubModel(id=1, value="sub_value") + self.model = ExampleModel(name="Test Model", details={"key": "value"}, items=[1, 2, 3], sub_model=self.sub_model) + + def test_to_dict(self): + """Test conversion to dictionary.""" + expected = { + 'name': "Test Model", + 'details': {"key": "value"}, + 'items': [1, 2, 3], + 'sub_model': {'id': 1, 'value': 'sub_value'} + } + self.assertEqual(self.model.to_dict(), expected) + + def test_to_dict_with_none(self): + """Test conversion to dictionary with None values.""" + model = ExampleModel(name=None, details=None, items=None, sub_model=None) + expected = {} + self.assertEqual(model.to_dict(), expected) + + def test_to_dict_with_dict_of_models(self): + """Test conversion to dictionary with a dictionary of models.""" + model = ExampleModel(name="Test Model", details={"key": "value"}, items=[1, 2, 3], sub_model={"sub": self.sub_model}) + expected = { + 'name': "Test Model", + 'details': {"key": "value"}, + 'items': [1, 2, 3], + 'sub_model': {'sub': {'id': 1, 'value': 'sub_value'}} + } + self.assertEqual(model.to_dict(), expected) + + def test_to_str(self): + """Test conversion to string.""" + expected_str = pprint.pformat(self.model.to_dict()) + self.assertEqual(self.model.to_str(), expected_str) + + def test_repr(self): + """Test __repr__ method.""" + expected_repr = self.model.to_str() + self.assertEqual(repr(self.model), expected_repr) + + def test_eq(self): + """Test equality comparison.""" + model1 = ExampleModel(name="Test Model", details={"key": "value"}, items=[1, 2, 3], sub_model=self.sub_model) + model2 = ExampleModel(name="Test Model", details={"key": "value"}, items=[1, 2, 3], sub_model=self.sub_model) + sub_model2 = SubModel(id=1, value="sub_value") + model3 = ExampleModel(name="Test Model", details={"key": "value"}, items=[1, 2, 3], sub_model=sub_model2) + self.assertTrue(model1 == model2) + self.assertTrue(model1 == model3) + + def test_ne(self): + """Test inequality comparison.""" + model1 = ExampleModel(name="Test Model", details={"key": "value"}, items=[1, 2, 3], sub_model=self.sub_model) + sub_model2 = SubModel(id=2, value="different_value") + model2 = ExampleModel(name="Test Model", details={"key": "value"}, items=[1, 2, 3], sub_model=sub_model2) + self.assertTrue(model1 != model2) + self.assertTrue(model1 != sub_model2) + self.assertTrue(model2 != sub_model2) + + def test_dict_inheritance(self): + """Test behavior when inheriting from dict.""" + class DictInheritedModel(dict, BaseModel): + swagger_types: Dict[str, str] = {} + attribute_map: Dict[str, str] = {} + + dict_inherited_model = DictInheritedModel() + dict_inherited_model["key"] = "value" + expected = {"key": "value"} + self.assertEqual(dict_inherited_model.to_dict(), expected) + + +if __name__ == '__main__': + unittest.main()