Coverage for fingerprint_pro_server_api_sdk/models/webhook_factory_reset.py: 62%
29 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +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 re # noqa: F401
14from typing import Dict, List, Optional # noqa: F401
15from fingerprint_pro_server_api_sdk.base_model import BaseModel
16from datetime import datetime
19class WebhookFactoryReset(BaseModel):
20 """NOTE: This class is auto generated by the swagger code generator program.
22 Do not edit the class manually.
23 """
24 """
25 Attributes:
26 swagger_types (dict): The key is attribute name
27 and the value is attribute type.
28 attribute_map (dict): The key is attribute name
29 and the value is json key in definition.
30 """
31 swagger_types = {
32 'time': 'datetime',
33 'timestamp': 'int'
34 }
36 nullable_map = {
37 'time': False,
38 'timestamp': False
39 }
41 attribute_map = {
42 'time': 'time',
43 'timestamp': 'timestamp'
44 }
46 def __init__(self, time=None, timestamp=None): # noqa: E501
47 """WebhookFactoryReset - a model defined in Swagger""" # noqa: E501
48 self._time = None
49 self._timestamp = None
50 self.discriminator = None
51 if time is not None:
52 self.time = time
53 if timestamp is not None:
54 self.timestamp = timestamp
56 @property
57 def time(self) -> Optional[datetime]:
58 """Gets the time of this WebhookFactoryReset. # noqa: E501
60 Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. # noqa: E501
62 :return: The time of this WebhookFactoryReset. # noqa: E501
63 """
64 return self._time
66 @time.setter
67 def time(self, time: Optional[datetime]):
68 """Sets the time of this WebhookFactoryReset.
70 Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. # noqa: E501
72 :param time: The time of this WebhookFactoryReset. # noqa: E501
73 """
75 self._time = time
77 @property
78 def timestamp(self) -> Optional[int]:
79 """Gets the timestamp of this WebhookFactoryReset. # noqa: E501
81 This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. # noqa: E501
83 :return: The timestamp of this WebhookFactoryReset. # noqa: E501
84 """
85 return self._timestamp
87 @timestamp.setter
88 def timestamp(self, timestamp: Optional[int]):
89 """Sets the timestamp of this WebhookFactoryReset.
91 This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. # noqa: E501
93 :param timestamp: The timestamp of this WebhookFactoryReset. # noqa: E501
94 """
96 self._timestamp = timestamp