Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/bypass_spam_management.py: 41%
16 statements
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
1class BypassSpamManagement(object):
2 """Setting for Bypass Spam Management
4 Allows you to bypass the spam report list to ensure that the email is delivered to recipients.
5 Bounce and unsubscribe lists will still be checked; addresses on these other lists will not
6 receive the message. This filter cannot be combined with the bypass_list_management filter.
7 """
9 def __init__(self, enable=None):
10 """Create a BypassSpamManagement.
12 :param enable: Whether emails should bypass spam management.
13 :type enable: boolean, optional
14 """
15 self._enable = None
17 if enable is not None:
18 self.enable = enable
20 @property
21 def enable(self):
22 """Indicates if this setting is enabled.
24 :rtype: boolean
25 """
26 return self._enable
28 @enable.setter
29 def enable(self, value):
30 """Indicates if this setting is enabled.
32 :param value: Indicates if this setting is enabled.
33 :type value: boolean
34 """
35 self._enable = value
37 def get(self):
38 """
39 Get a JSON-ready representation of this BypassSpamManagement.
41 :returns: This BypassSpamManagement, ready for use in a request body.
42 :rtype: dict
43 """
44 bypass_spam_management = {}
45 if self.enable is not None:
46 bypass_spam_management["enable"] = self.enable
47 return bypass_spam_management