forked from sendgrid/sendgrid-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathip_pool_name.py
40 lines (31 loc) · 1.13 KB
/
ip_pool_name.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class IpPoolName(object):
"""The IP Pool that you would like to send this email from."""
def __init__(self, ip_pool_name=None):
"""Create a IpPoolName object
:param ip_pool_name: The IP Pool that you would like to send this
email from.
:type ip_pool_name: string, optional
"""
self._ip_pool_name = None
if ip_pool_name is not None:
self.ip_pool_name = ip_pool_name
@property
def ip_pool_name(self):
"""The IP Pool that you would like to send this email from.
:rtype: string
"""
return self._ip_pool_name
@ip_pool_name.setter
def ip_pool_name(self, value):
"""The IP Pool that you would like to send this email from.
:param value: The IP Pool that you would like to send this email from.
:type value: string
"""
self._ip_pool_name = value
def get(self):
"""
Get a JSON-ready representation of this IpPoolName.
:returns: This IpPoolName, ready for use in a request body.
:rtype: string
"""
return self.ip_pool_name