Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/sendgrid/helpers/mail/ip_pool_name.py: 53%

13 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2023-07-17 14:22 -0600

1class IpPoolName(object): 

2 """The IP Pool that you would like to send this email from.""" 

3 

4 def __init__(self, ip_pool_name=None): 

5 """Create a IpPoolName object 

6 

7 :param ip_pool_name: The IP Pool that you would like to send this 

8 email from. 

9 :type ip_pool_name: string, optional 

10 """ 

11 self._ip_pool_name = None 

12 

13 if ip_pool_name is not None: 

14 self.ip_pool_name = ip_pool_name 

15 

16 @property 

17 def ip_pool_name(self): 

18 """The IP Pool that you would like to send this email from. 

19 

20 :rtype: string 

21 """ 

22 return self._ip_pool_name 

23 

24 @ip_pool_name.setter 

25 def ip_pool_name(self, value): 

26 """The IP Pool that you would like to send this email from. 

27 

28 :param value: The IP Pool that you would like to send this email from. 

29 :type value: string 

30 """ 

31 self._ip_pool_name = value 

32 

33 def get(self): 

34 """ 

35 Get a JSON-ready representation of this IpPoolName. 

36 

37 :returns: This IpPoolName, ready for use in a request body. 

38 :rtype: string 

39 """ 

40 return self.ip_pool_name