Coverage for fingerprint_pro_server_api_sdk/models/high_activity.py: 90%

29 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 

16 

17 

18class HighActivity(BaseModel): 

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

20 

21 Do not edit the class manually. 

22 """ 

23 """ 

24 Attributes: 

25 swagger_types (dict): The key is attribute name 

26 and the value is attribute type. 

27 attribute_map (dict): The key is attribute name 

28 and the value is json key in definition. 

29 """ 

30 swagger_types = { 

31 'result': 'bool', 

32 'daily_requests': 'int' 

33 } 

34 

35 nullable_map = { 

36 'result': False, 

37 'daily_requests': False 

38 } 

39 

40 attribute_map = { 

41 'result': 'result', 

42 'daily_requests': 'dailyRequests' 

43 } 

44 

45 def __init__(self, result=None, daily_requests=None): # noqa: E501 

46 """HighActivity - a model defined in Swagger""" # noqa: E501 

47 self._result = None 

48 self._daily_requests = None 

49 self.discriminator = None 

50 self.result = result 

51 if daily_requests is not None: 

52 self.daily_requests = daily_requests 

53 

54 @property 

55 def result(self) -> bool: 

56 """Gets the result of this HighActivity. # noqa: E501 

57 

58 Flag indicating if the request came from a high-activity visitor. # noqa: E501 

59 

60 :return: The result of this HighActivity. # noqa: E501 

61 """ 

62 return self._result 

63 

64 @result.setter 

65 def result(self, result: bool): 

66 """Sets the result of this HighActivity. 

67 

68 Flag indicating if the request came from a high-activity visitor. # noqa: E501 

69 

70 :param result: The result of this HighActivity. # noqa: E501 

71 """ 

72 if result is None: 

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

74 

75 self._result = result 

76 

77 @property 

78 def daily_requests(self) -> Optional[int]: 

79 """Gets the daily_requests of this HighActivity. # noqa: E501 

80 

81 Number of requests from the same visitor in the previous day. # noqa: E501 

82 

83 :return: The daily_requests of this HighActivity. # noqa: E501 

84 """ 

85 return self._daily_requests 

86 

87 @daily_requests.setter 

88 def daily_requests(self, daily_requests: Optional[int]): 

89 """Sets the daily_requests of this HighActivity. 

90 

91 Number of requests from the same visitor in the previous day. # noqa: E501 

92 

93 :param daily_requests: The daily_requests of this HighActivity. # noqa: E501 

94 """ 

95 

96 self._daily_requests = daily_requests 

97