Coverage for fingerprint_pro_server_api_sdk/models/factory_reset.py: 94%

31 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-21 15:03 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Pro Server API 

5 

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 

7 

8 OpenAPI spec version: 3 

9 Contact: support@fingerprint.com 

10 Generated by: https://github.com/swagger-api/swagger-codegen.git 

11""" 

12 

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 

17 

18 

19class FactoryReset(BaseModel): 

20 """NOTE: This class is auto generated by the swagger code generator program. 

21 

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 } 

35 

36 nullable_map = { 

37 'time': False, 

38 'timestamp': False 

39 } 

40 

41 attribute_map = { 

42 'time': 'time', 

43 'timestamp': 'timestamp' 

44 } 

45 

46 def __init__(self, time=None, timestamp=None): # noqa: E501 

47 """FactoryReset - a model defined in Swagger""" # noqa: E501 

48 self._time = None 

49 self._timestamp = None 

50 self.discriminator = None 

51 self.time = time 

52 self.timestamp = timestamp 

53 

54 @property 

55 def time(self) -> datetime: 

56 """Gets the time of this FactoryReset. # noqa: E501 

57 

58 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 

59 

60 :return: The time of this FactoryReset. # noqa: E501 

61 """ 

62 return self._time 

63 

64 @time.setter 

65 def time(self, time: datetime): 

66 """Sets the time of this FactoryReset. 

67 

68 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 

69 

70 :param time: The time of this FactoryReset. # noqa: E501 

71 """ 

72 if time is None: 

73 raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 

74 

75 self._time = time 

76 

77 @property 

78 def timestamp(self) -> int: 

79 """Gets the timestamp of this FactoryReset. # noqa: E501 

80 

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 

82 

83 :return: The timestamp of this FactoryReset. # noqa: E501 

84 """ 

85 return self._timestamp 

86 

87 @timestamp.setter 

88 def timestamp(self, timestamp: int): 

89 """Sets the timestamp of this FactoryReset. 

90 

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 

92 

93 :param timestamp: The timestamp of this FactoryReset. # noqa: E501 

94 """ 

95 if timestamp is None: 

96 raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 

97 

98 self._timestamp = timestamp 

99