Coverage for fingerprint_pro_server_api_sdk/models/ip_blocklist_details.py: 93%

30 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 IPBlocklistDetails(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 'email_spam': 'bool', 

32 'attack_source': 'bool' 

33 } 

34 

35 nullable_map = { 

36 'email_spam': False, 

37 'attack_source': False 

38 } 

39 

40 attribute_map = { 

41 'email_spam': 'emailSpam', 

42 'attack_source': 'attackSource' 

43 } 

44 

45 def __init__(self, email_spam=None, attack_source=None): # noqa: E501 

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

47 self._email_spam = None 

48 self._attack_source = None 

49 self.discriminator = None 

50 self.email_spam = email_spam 

51 self.attack_source = attack_source 

52 

53 @property 

54 def email_spam(self) -> bool: 

55 """Gets the email_spam of this IPBlocklistDetails. # noqa: E501 

56 

57 IP address was part of a known email spam attack (SMTP). # noqa: E501 

58 

59 :return: The email_spam of this IPBlocklistDetails. # noqa: E501 

60 """ 

61 return self._email_spam 

62 

63 @email_spam.setter 

64 def email_spam(self, email_spam: bool): 

65 """Sets the email_spam of this IPBlocklistDetails. 

66 

67 IP address was part of a known email spam attack (SMTP). # noqa: E501 

68 

69 :param email_spam: The email_spam of this IPBlocklistDetails. # noqa: E501 

70 """ 

71 if email_spam is None: 

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

73 

74 self._email_spam = email_spam 

75 

76 @property 

77 def attack_source(self) -> bool: 

78 """Gets the attack_source of this IPBlocklistDetails. # noqa: E501 

79 

80 IP address was part of a known network attack (SSH/HTTPS). # noqa: E501 

81 

82 :return: The attack_source of this IPBlocklistDetails. # noqa: E501 

83 """ 

84 return self._attack_source 

85 

86 @attack_source.setter 

87 def attack_source(self, attack_source: bool): 

88 """Sets the attack_source of this IPBlocklistDetails. 

89 

90 IP address was part of a known network attack (SSH/HTTPS). # noqa: E501 

91 

92 :param attack_source: The attack_source of this IPBlocklistDetails. # noqa: E501 

93 """ 

94 if attack_source is None: 

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

96 

97 self._attack_source = attack_source 

98