Coverage for fingerprint_pro_server_api_sdk/models/products_response.py: 90%
225 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-27 22:39 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-27 22:39 +0000
1# coding: utf-8
3"""
4 Fingerprint Pro Server API
6 Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. # noqa: E501
8 OpenAPI spec version: 3
9 Contact: support@fingerprint.com
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
13import pprint
14import re # noqa: F401
16import six
18class ProductsResponse(object):
19 """
20 Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise)
22 NOTE: This class is auto generated by the swagger code generator program.
24 Do not edit the class manually.
25 """
26 """
27 Attributes:
28 swagger_types (dict): The key is attribute name
29 and the value is attribute type.
30 attribute_map (dict): The key is attribute name
31 and the value is json key in definition.
32 """
33 swagger_types = {
34 'identification': 'ProductsResponseIdentification',
35 'botd': 'ProductsResponseBotd',
36 'ip_info': 'SignalResponseIpInfo',
37 'incognito': 'SignalResponseIncognito',
38 'root_apps': 'SignalResponseRootApps',
39 'emulator': 'SignalResponseEmulator',
40 'cloned_app': 'SignalResponseClonedApp',
41 'factory_reset': 'SignalResponseFactoryReset',
42 'jailbroken': 'SignalResponseJailbroken',
43 'frida': 'SignalResponseFrida',
44 'ip_blocklist': 'SignalResponseIpBlocklist',
45 'tor': 'SignalResponseTor',
46 'privacy_settings': 'SignalResponsePrivacySettings',
47 'virtual_machine': 'SignalResponseVirtualMachine',
48 'vpn': 'SignalResponseVpn',
49 'proxy': 'SignalResponseProxy',
50 'tampering': 'SignalResponseTampering',
51 'high_activity': 'SignalResponseHighActivity',
52 'location_spoofing': 'SignalResponseLocationSpoofing',
53 'suspect_score': 'SignalResponseSuspectScore',
54 'raw_device_attributes': 'SignalResponseRawDeviceAttributes'
55 }
57 attribute_map = {
58 'identification': 'identification',
59 'botd': 'botd',
60 'ip_info': 'ipInfo',
61 'incognito': 'incognito',
62 'root_apps': 'rootApps',
63 'emulator': 'emulator',
64 'cloned_app': 'clonedApp',
65 'factory_reset': 'factoryReset',
66 'jailbroken': 'jailbroken',
67 'frida': 'frida',
68 'ip_blocklist': 'ipBlocklist',
69 'tor': 'tor',
70 'privacy_settings': 'privacySettings',
71 'virtual_machine': 'virtualMachine',
72 'vpn': 'vpn',
73 'proxy': 'proxy',
74 'tampering': 'tampering',
75 'high_activity': 'highActivity',
76 'location_spoofing': 'locationSpoofing',
77 'suspect_score': 'suspectScore',
78 'raw_device_attributes': 'rawDeviceAttributes'
79 }
81 def __init__(self, identification=None, botd=None, ip_info=None, incognito=None, root_apps=None, emulator=None, cloned_app=None, factory_reset=None, jailbroken=None, frida=None, ip_blocklist=None, tor=None, privacy_settings=None, virtual_machine=None, vpn=None, proxy=None, tampering=None, high_activity=None, location_spoofing=None, suspect_score=None, raw_device_attributes=None): # noqa: E501
82 """ProductsResponse - a model defined in Swagger""" # noqa: E501
83 self._identification = None
84 self._botd = None
85 self._ip_info = None
86 self._incognito = None
87 self._root_apps = None
88 self._emulator = None
89 self._cloned_app = None
90 self._factory_reset = None
91 self._jailbroken = None
92 self._frida = None
93 self._ip_blocklist = None
94 self._tor = None
95 self._privacy_settings = None
96 self._virtual_machine = None
97 self._vpn = None
98 self._proxy = None
99 self._tampering = None
100 self._high_activity = None
101 self._location_spoofing = None
102 self._suspect_score = None
103 self._raw_device_attributes = None
104 self.discriminator = None
105 if identification is not None:
106 self.identification = identification
107 if botd is not None:
108 self.botd = botd
109 if ip_info is not None:
110 self.ip_info = ip_info
111 if incognito is not None:
112 self.incognito = incognito
113 if root_apps is not None:
114 self.root_apps = root_apps
115 if emulator is not None:
116 self.emulator = emulator
117 if cloned_app is not None:
118 self.cloned_app = cloned_app
119 if factory_reset is not None:
120 self.factory_reset = factory_reset
121 if jailbroken is not None:
122 self.jailbroken = jailbroken
123 if frida is not None:
124 self.frida = frida
125 if ip_blocklist is not None:
126 self.ip_blocklist = ip_blocklist
127 if tor is not None:
128 self.tor = tor
129 if privacy_settings is not None:
130 self.privacy_settings = privacy_settings
131 if virtual_machine is not None:
132 self.virtual_machine = virtual_machine
133 if vpn is not None:
134 self.vpn = vpn
135 if proxy is not None:
136 self.proxy = proxy
137 if tampering is not None:
138 self.tampering = tampering
139 if high_activity is not None:
140 self.high_activity = high_activity
141 if location_spoofing is not None:
142 self.location_spoofing = location_spoofing
143 if suspect_score is not None:
144 self.suspect_score = suspect_score
145 if raw_device_attributes is not None:
146 self.raw_device_attributes = raw_device_attributes
148 @property
149 def identification(self):
150 """Gets the identification of this ProductsResponse. # noqa: E501
153 :return: The identification of this ProductsResponse. # noqa: E501
154 :rtype: ProductsResponseIdentification
155 """
156 return self._identification
158 @identification.setter
159 def identification(self, identification):
160 """Sets the identification of this ProductsResponse.
163 :param identification: The identification of this ProductsResponse. # noqa: E501
164 :type: ProductsResponseIdentification
165 """
167 self._identification = identification
169 @property
170 def botd(self):
171 """Gets the botd of this ProductsResponse. # noqa: E501
174 :return: The botd of this ProductsResponse. # noqa: E501
175 :rtype: ProductsResponseBotd
176 """
177 return self._botd
179 @botd.setter
180 def botd(self, botd):
181 """Sets the botd of this ProductsResponse.
184 :param botd: The botd of this ProductsResponse. # noqa: E501
185 :type: ProductsResponseBotd
186 """
188 self._botd = botd
190 @property
191 def ip_info(self):
192 """Gets the ip_info of this ProductsResponse. # noqa: E501
195 :return: The ip_info of this ProductsResponse. # noqa: E501
196 :rtype: SignalResponseIpInfo
197 """
198 return self._ip_info
200 @ip_info.setter
201 def ip_info(self, ip_info):
202 """Sets the ip_info of this ProductsResponse.
205 :param ip_info: The ip_info of this ProductsResponse. # noqa: E501
206 :type: SignalResponseIpInfo
207 """
209 self._ip_info = ip_info
211 @property
212 def incognito(self):
213 """Gets the incognito of this ProductsResponse. # noqa: E501
216 :return: The incognito of this ProductsResponse. # noqa: E501
217 :rtype: SignalResponseIncognito
218 """
219 return self._incognito
221 @incognito.setter
222 def incognito(self, incognito):
223 """Sets the incognito of this ProductsResponse.
226 :param incognito: The incognito of this ProductsResponse. # noqa: E501
227 :type: SignalResponseIncognito
228 """
230 self._incognito = incognito
232 @property
233 def root_apps(self):
234 """Gets the root_apps of this ProductsResponse. # noqa: E501
237 :return: The root_apps of this ProductsResponse. # noqa: E501
238 :rtype: SignalResponseRootApps
239 """
240 return self._root_apps
242 @root_apps.setter
243 def root_apps(self, root_apps):
244 """Sets the root_apps of this ProductsResponse.
247 :param root_apps: The root_apps of this ProductsResponse. # noqa: E501
248 :type: SignalResponseRootApps
249 """
251 self._root_apps = root_apps
253 @property
254 def emulator(self):
255 """Gets the emulator of this ProductsResponse. # noqa: E501
258 :return: The emulator of this ProductsResponse. # noqa: E501
259 :rtype: SignalResponseEmulator
260 """
261 return self._emulator
263 @emulator.setter
264 def emulator(self, emulator):
265 """Sets the emulator of this ProductsResponse.
268 :param emulator: The emulator of this ProductsResponse. # noqa: E501
269 :type: SignalResponseEmulator
270 """
272 self._emulator = emulator
274 @property
275 def cloned_app(self):
276 """Gets the cloned_app of this ProductsResponse. # noqa: E501
279 :return: The cloned_app of this ProductsResponse. # noqa: E501
280 :rtype: SignalResponseClonedApp
281 """
282 return self._cloned_app
284 @cloned_app.setter
285 def cloned_app(self, cloned_app):
286 """Sets the cloned_app of this ProductsResponse.
289 :param cloned_app: The cloned_app of this ProductsResponse. # noqa: E501
290 :type: SignalResponseClonedApp
291 """
293 self._cloned_app = cloned_app
295 @property
296 def factory_reset(self):
297 """Gets the factory_reset of this ProductsResponse. # noqa: E501
300 :return: The factory_reset of this ProductsResponse. # noqa: E501
301 :rtype: SignalResponseFactoryReset
302 """
303 return self._factory_reset
305 @factory_reset.setter
306 def factory_reset(self, factory_reset):
307 """Sets the factory_reset of this ProductsResponse.
310 :param factory_reset: The factory_reset of this ProductsResponse. # noqa: E501
311 :type: SignalResponseFactoryReset
312 """
314 self._factory_reset = factory_reset
316 @property
317 def jailbroken(self):
318 """Gets the jailbroken of this ProductsResponse. # noqa: E501
321 :return: The jailbroken of this ProductsResponse. # noqa: E501
322 :rtype: SignalResponseJailbroken
323 """
324 return self._jailbroken
326 @jailbroken.setter
327 def jailbroken(self, jailbroken):
328 """Sets the jailbroken of this ProductsResponse.
331 :param jailbroken: The jailbroken of this ProductsResponse. # noqa: E501
332 :type: SignalResponseJailbroken
333 """
335 self._jailbroken = jailbroken
337 @property
338 def frida(self):
339 """Gets the frida of this ProductsResponse. # noqa: E501
342 :return: The frida of this ProductsResponse. # noqa: E501
343 :rtype: SignalResponseFrida
344 """
345 return self._frida
347 @frida.setter
348 def frida(self, frida):
349 """Sets the frida of this ProductsResponse.
352 :param frida: The frida of this ProductsResponse. # noqa: E501
353 :type: SignalResponseFrida
354 """
356 self._frida = frida
358 @property
359 def ip_blocklist(self):
360 """Gets the ip_blocklist of this ProductsResponse. # noqa: E501
363 :return: The ip_blocklist of this ProductsResponse. # noqa: E501
364 :rtype: SignalResponseIpBlocklist
365 """
366 return self._ip_blocklist
368 @ip_blocklist.setter
369 def ip_blocklist(self, ip_blocklist):
370 """Sets the ip_blocklist of this ProductsResponse.
373 :param ip_blocklist: The ip_blocklist of this ProductsResponse. # noqa: E501
374 :type: SignalResponseIpBlocklist
375 """
377 self._ip_blocklist = ip_blocklist
379 @property
380 def tor(self):
381 """Gets the tor of this ProductsResponse. # noqa: E501
384 :return: The tor of this ProductsResponse. # noqa: E501
385 :rtype: SignalResponseTor
386 """
387 return self._tor
389 @tor.setter
390 def tor(self, tor):
391 """Sets the tor of this ProductsResponse.
394 :param tor: The tor of this ProductsResponse. # noqa: E501
395 :type: SignalResponseTor
396 """
398 self._tor = tor
400 @property
401 def privacy_settings(self):
402 """Gets the privacy_settings of this ProductsResponse. # noqa: E501
405 :return: The privacy_settings of this ProductsResponse. # noqa: E501
406 :rtype: SignalResponsePrivacySettings
407 """
408 return self._privacy_settings
410 @privacy_settings.setter
411 def privacy_settings(self, privacy_settings):
412 """Sets the privacy_settings of this ProductsResponse.
415 :param privacy_settings: The privacy_settings of this ProductsResponse. # noqa: E501
416 :type: SignalResponsePrivacySettings
417 """
419 self._privacy_settings = privacy_settings
421 @property
422 def virtual_machine(self):
423 """Gets the virtual_machine of this ProductsResponse. # noqa: E501
426 :return: The virtual_machine of this ProductsResponse. # noqa: E501
427 :rtype: SignalResponseVirtualMachine
428 """
429 return self._virtual_machine
431 @virtual_machine.setter
432 def virtual_machine(self, virtual_machine):
433 """Sets the virtual_machine of this ProductsResponse.
436 :param virtual_machine: The virtual_machine of this ProductsResponse. # noqa: E501
437 :type: SignalResponseVirtualMachine
438 """
440 self._virtual_machine = virtual_machine
442 @property
443 def vpn(self):
444 """Gets the vpn of this ProductsResponse. # noqa: E501
447 :return: The vpn of this ProductsResponse. # noqa: E501
448 :rtype: SignalResponseVpn
449 """
450 return self._vpn
452 @vpn.setter
453 def vpn(self, vpn):
454 """Sets the vpn of this ProductsResponse.
457 :param vpn: The vpn of this ProductsResponse. # noqa: E501
458 :type: SignalResponseVpn
459 """
461 self._vpn = vpn
463 @property
464 def proxy(self):
465 """Gets the proxy of this ProductsResponse. # noqa: E501
468 :return: The proxy of this ProductsResponse. # noqa: E501
469 :rtype: SignalResponseProxy
470 """
471 return self._proxy
473 @proxy.setter
474 def proxy(self, proxy):
475 """Sets the proxy of this ProductsResponse.
478 :param proxy: The proxy of this ProductsResponse. # noqa: E501
479 :type: SignalResponseProxy
480 """
482 self._proxy = proxy
484 @property
485 def tampering(self):
486 """Gets the tampering of this ProductsResponse. # noqa: E501
489 :return: The tampering of this ProductsResponse. # noqa: E501
490 :rtype: SignalResponseTampering
491 """
492 return self._tampering
494 @tampering.setter
495 def tampering(self, tampering):
496 """Sets the tampering of this ProductsResponse.
499 :param tampering: The tampering of this ProductsResponse. # noqa: E501
500 :type: SignalResponseTampering
501 """
503 self._tampering = tampering
505 @property
506 def high_activity(self):
507 """Gets the high_activity of this ProductsResponse. # noqa: E501
510 :return: The high_activity of this ProductsResponse. # noqa: E501
511 :rtype: SignalResponseHighActivity
512 """
513 return self._high_activity
515 @high_activity.setter
516 def high_activity(self, high_activity):
517 """Sets the high_activity of this ProductsResponse.
520 :param high_activity: The high_activity of this ProductsResponse. # noqa: E501
521 :type: SignalResponseHighActivity
522 """
524 self._high_activity = high_activity
526 @property
527 def location_spoofing(self):
528 """Gets the location_spoofing of this ProductsResponse. # noqa: E501
531 :return: The location_spoofing of this ProductsResponse. # noqa: E501
532 :rtype: SignalResponseLocationSpoofing
533 """
534 return self._location_spoofing
536 @location_spoofing.setter
537 def location_spoofing(self, location_spoofing):
538 """Sets the location_spoofing of this ProductsResponse.
541 :param location_spoofing: The location_spoofing of this ProductsResponse. # noqa: E501
542 :type: SignalResponseLocationSpoofing
543 """
545 self._location_spoofing = location_spoofing
547 @property
548 def suspect_score(self):
549 """Gets the suspect_score of this ProductsResponse. # noqa: E501
552 :return: The suspect_score of this ProductsResponse. # noqa: E501
553 :rtype: SignalResponseSuspectScore
554 """
555 return self._suspect_score
557 @suspect_score.setter
558 def suspect_score(self, suspect_score):
559 """Sets the suspect_score of this ProductsResponse.
562 :param suspect_score: The suspect_score of this ProductsResponse. # noqa: E501
563 :type: SignalResponseSuspectScore
564 """
566 self._suspect_score = suspect_score
568 @property
569 def raw_device_attributes(self):
570 """Gets the raw_device_attributes of this ProductsResponse. # noqa: E501
573 :return: The raw_device_attributes of this ProductsResponse. # noqa: E501
574 :rtype: SignalResponseRawDeviceAttributes
575 """
576 return self._raw_device_attributes
578 @raw_device_attributes.setter
579 def raw_device_attributes(self, raw_device_attributes):
580 """Sets the raw_device_attributes of this ProductsResponse.
583 :param raw_device_attributes: The raw_device_attributes of this ProductsResponse. # noqa: E501
584 :type: SignalResponseRawDeviceAttributes
585 """
587 self._raw_device_attributes = raw_device_attributes
589 def to_dict(self):
590 """Returns the model properties as a dict"""
591 result = {}
593 for attr, _ in six.iteritems(self.swagger_types):
594 value = getattr(self, attr)
595 if isinstance(value, list):
596 result[attr] = list(map(
597 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
598 value
599 ))
600 elif hasattr(value, "to_dict"):
601 result[attr] = value.to_dict()
602 elif isinstance(value, dict):
603 result[attr] = dict(map(
604 lambda item: (item[0], item[1].to_dict())
605 if hasattr(item[1], "to_dict") else item,
606 value.items()
607 ))
608 else:
609 result[attr] = value
610 if issubclass(ProductsResponse, dict):
611 for key, value in self.items():
612 result[key] = value
614 return result
616 def to_str(self):
617 """Returns the string representation of the model"""
618 return pprint.pformat(self.to_dict())
620 def __repr__(self):
621 """For `print` and `pprint`"""
622 return self.to_str()
624 def __eq__(self, other):
625 """Returns true if both objects are equal"""
626 if not isinstance(other, ProductsResponse):
627 return False
629 return self.to_dict() == other.to_dict()
631 def __ne__(self, other):
632 """Returns true if both objects are not equal"""
633 if not isinstance(other, ProductsResponse):
634 return True
636 return self.to_dict() != other.to_dict()