Module mailslurp_client.models.page_sent_email_projection
MailSlurp API
MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - Homepage - Get an API KEY - Generated SDK Clients - Examples repository # noqa: E501
The version of the OpenAPI document: 6.5.2 Contact: contact@mailslurp.dev Generated by: https://openapi-generator.tech
Expand source code
# coding: utf-8
"""
MailSlurp API
MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository # noqa: E501
The version of the OpenAPI document: 6.5.2
Contact: contact@mailslurp.dev
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from mailslurp_client.configuration import Configuration
class PageSentEmailProjection(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
'content': 'list[SentEmailProjection]',
'pageable': 'PageableObject',
'total': 'int',
'size': 'int',
'number': 'int',
'number_of_elements': 'int',
'total_elements': 'int',
'total_pages': 'int',
'last': 'bool',
'sort': 'Sort',
'first': 'bool',
'empty': 'bool'
}
attribute_map = {
'content': 'content',
'pageable': 'pageable',
'total': 'total',
'size': 'size',
'number': 'number',
'number_of_elements': 'numberOfElements',
'total_elements': 'totalElements',
'total_pages': 'totalPages',
'last': 'last',
'sort': 'sort',
'first': 'first',
'empty': 'empty'
}
def __init__(self, content=None, pageable=None, total=None, size=None, number=None, number_of_elements=None, total_elements=None, total_pages=None, last=None, sort=None, first=None, empty=None, local_vars_configuration=None): # noqa: E501
"""PageSentEmailProjection - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._content = None
self._pageable = None
self._total = None
self._size = None
self._number = None
self._number_of_elements = None
self._total_elements = None
self._total_pages = None
self._last = None
self._sort = None
self._first = None
self._empty = None
self.discriminator = None
self.content = content
if pageable is not None:
self.pageable = pageable
if total is not None:
self.total = total
self.size = size
self.number = number
self.number_of_elements = number_of_elements
self.total_elements = total_elements
self.total_pages = total_pages
if last is not None:
self.last = last
if sort is not None:
self.sort = sort
if first is not None:
self.first = first
if empty is not None:
self.empty = empty
@property
def content(self):
"""Gets the content of this PageSentEmailProjection. # noqa: E501
Collection of items # noqa: E501
:return: The content of this PageSentEmailProjection. # noqa: E501
:rtype: list[SentEmailProjection]
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this PageSentEmailProjection.
Collection of items # noqa: E501
:param content: The content of this PageSentEmailProjection. # noqa: E501
:type: list[SentEmailProjection]
"""
if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501
raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
self._content = content
@property
def pageable(self):
"""Gets the pageable of this PageSentEmailProjection. # noqa: E501
:return: The pageable of this PageSentEmailProjection. # noqa: E501
:rtype: PageableObject
"""
return self._pageable
@pageable.setter
def pageable(self, pageable):
"""Sets the pageable of this PageSentEmailProjection.
:param pageable: The pageable of this PageSentEmailProjection. # noqa: E501
:type: PageableObject
"""
self._pageable = pageable
@property
def total(self):
"""Gets the total of this PageSentEmailProjection. # noqa: E501
:return: The total of this PageSentEmailProjection. # noqa: E501
:rtype: int
"""
return self._total
@total.setter
def total(self, total):
"""Sets the total of this PageSentEmailProjection.
:param total: The total of this PageSentEmailProjection. # noqa: E501
:type: int
"""
self._total = total
@property
def size(self):
"""Gets the size of this PageSentEmailProjection. # noqa: E501
Size of page requested # noqa: E501
:return: The size of this PageSentEmailProjection. # noqa: E501
:rtype: int
"""
return self._size
@size.setter
def size(self, size):
"""Sets the size of this PageSentEmailProjection.
Size of page requested # noqa: E501
:param size: The size of this PageSentEmailProjection. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and size is None: # noqa: E501
raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501
self._size = size
@property
def number(self):
"""Gets the number of this PageSentEmailProjection. # noqa: E501
Page number starting at 0 # noqa: E501
:return: The number of this PageSentEmailProjection. # noqa: E501
:rtype: int
"""
return self._number
@number.setter
def number(self, number):
"""Sets the number of this PageSentEmailProjection.
Page number starting at 0 # noqa: E501
:param number: The number of this PageSentEmailProjection. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and number is None: # noqa: E501
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
self._number = number
@property
def number_of_elements(self):
"""Gets the number_of_elements of this PageSentEmailProjection. # noqa: E501
Number of items returned # noqa: E501
:return: The number_of_elements of this PageSentEmailProjection. # noqa: E501
:rtype: int
"""
return self._number_of_elements
@number_of_elements.setter
def number_of_elements(self, number_of_elements):
"""Sets the number_of_elements of this PageSentEmailProjection.
Number of items returned # noqa: E501
:param number_of_elements: The number_of_elements of this PageSentEmailProjection. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and number_of_elements is None: # noqa: E501
raise ValueError("Invalid value for `number_of_elements`, must not be `None`") # noqa: E501
self._number_of_elements = number_of_elements
@property
def total_elements(self):
"""Gets the total_elements of this PageSentEmailProjection. # noqa: E501
Total number of items available for querying # noqa: E501
:return: The total_elements of this PageSentEmailProjection. # noqa: E501
:rtype: int
"""
return self._total_elements
@total_elements.setter
def total_elements(self, total_elements):
"""Sets the total_elements of this PageSentEmailProjection.
Total number of items available for querying # noqa: E501
:param total_elements: The total_elements of this PageSentEmailProjection. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and total_elements is None: # noqa: E501
raise ValueError("Invalid value for `total_elements`, must not be `None`") # noqa: E501
self._total_elements = total_elements
@property
def total_pages(self):
"""Gets the total_pages of this PageSentEmailProjection. # noqa: E501
Total number of pages available # noqa: E501
:return: The total_pages of this PageSentEmailProjection. # noqa: E501
:rtype: int
"""
return self._total_pages
@total_pages.setter
def total_pages(self, total_pages):
"""Sets the total_pages of this PageSentEmailProjection.
Total number of pages available # noqa: E501
:param total_pages: The total_pages of this PageSentEmailProjection. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and total_pages is None: # noqa: E501
raise ValueError("Invalid value for `total_pages`, must not be `None`") # noqa: E501
self._total_pages = total_pages
@property
def last(self):
"""Gets the last of this PageSentEmailProjection. # noqa: E501
:return: The last of this PageSentEmailProjection. # noqa: E501
:rtype: bool
"""
return self._last
@last.setter
def last(self, last):
"""Sets the last of this PageSentEmailProjection.
:param last: The last of this PageSentEmailProjection. # noqa: E501
:type: bool
"""
self._last = last
@property
def sort(self):
"""Gets the sort of this PageSentEmailProjection. # noqa: E501
:return: The sort of this PageSentEmailProjection. # noqa: E501
:rtype: Sort
"""
return self._sort
@sort.setter
def sort(self, sort):
"""Sets the sort of this PageSentEmailProjection.
:param sort: The sort of this PageSentEmailProjection. # noqa: E501
:type: Sort
"""
self._sort = sort
@property
def first(self):
"""Gets the first of this PageSentEmailProjection. # noqa: E501
:return: The first of this PageSentEmailProjection. # noqa: E501
:rtype: bool
"""
return self._first
@first.setter
def first(self, first):
"""Sets the first of this PageSentEmailProjection.
:param first: The first of this PageSentEmailProjection. # noqa: E501
:type: bool
"""
self._first = first
@property
def empty(self):
"""Gets the empty of this PageSentEmailProjection. # noqa: E501
:return: The empty of this PageSentEmailProjection. # noqa: E501
:rtype: bool
"""
return self._empty
@empty.setter
def empty(self, empty):
"""Sets the empty of this PageSentEmailProjection.
:param empty: The empty of this PageSentEmailProjection. # noqa: E501
:type: bool
"""
self._empty = empty
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, PageSentEmailProjection):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, PageSentEmailProjection):
return True
return self.to_dict() != other.to_dict()
Classes
class PageSentEmailProjection (content=None, pageable=None, total=None, size=None, number=None, number_of_elements=None, total_elements=None, total_pages=None, last=None, sort=None, first=None, empty=None, local_vars_configuration=None)
-
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
PageSentEmailProjection - a model defined in OpenAPI
Expand source code
class PageSentEmailProjection(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ openapi_types = { 'content': 'list[SentEmailProjection]', 'pageable': 'PageableObject', 'total': 'int', 'size': 'int', 'number': 'int', 'number_of_elements': 'int', 'total_elements': 'int', 'total_pages': 'int', 'last': 'bool', 'sort': 'Sort', 'first': 'bool', 'empty': 'bool' } attribute_map = { 'content': 'content', 'pageable': 'pageable', 'total': 'total', 'size': 'size', 'number': 'number', 'number_of_elements': 'numberOfElements', 'total_elements': 'totalElements', 'total_pages': 'totalPages', 'last': 'last', 'sort': 'sort', 'first': 'first', 'empty': 'empty' } def __init__(self, content=None, pageable=None, total=None, size=None, number=None, number_of_elements=None, total_elements=None, total_pages=None, last=None, sort=None, first=None, empty=None, local_vars_configuration=None): # noqa: E501 """PageSentEmailProjection - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._content = None self._pageable = None self._total = None self._size = None self._number = None self._number_of_elements = None self._total_elements = None self._total_pages = None self._last = None self._sort = None self._first = None self._empty = None self.discriminator = None self.content = content if pageable is not None: self.pageable = pageable if total is not None: self.total = total self.size = size self.number = number self.number_of_elements = number_of_elements self.total_elements = total_elements self.total_pages = total_pages if last is not None: self.last = last if sort is not None: self.sort = sort if first is not None: self.first = first if empty is not None: self.empty = empty @property def content(self): """Gets the content of this PageSentEmailProjection. # noqa: E501 Collection of items # noqa: E501 :return: The content of this PageSentEmailProjection. # noqa: E501 :rtype: list[SentEmailProjection] """ return self._content @content.setter def content(self, content): """Sets the content of this PageSentEmailProjection. Collection of items # noqa: E501 :param content: The content of this PageSentEmailProjection. # noqa: E501 :type: list[SentEmailProjection] """ if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501 raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 self._content = content @property def pageable(self): """Gets the pageable of this PageSentEmailProjection. # noqa: E501 :return: The pageable of this PageSentEmailProjection. # noqa: E501 :rtype: PageableObject """ return self._pageable @pageable.setter def pageable(self, pageable): """Sets the pageable of this PageSentEmailProjection. :param pageable: The pageable of this PageSentEmailProjection. # noqa: E501 :type: PageableObject """ self._pageable = pageable @property def total(self): """Gets the total of this PageSentEmailProjection. # noqa: E501 :return: The total of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._total @total.setter def total(self, total): """Sets the total of this PageSentEmailProjection. :param total: The total of this PageSentEmailProjection. # noqa: E501 :type: int """ self._total = total @property def size(self): """Gets the size of this PageSentEmailProjection. # noqa: E501 Size of page requested # noqa: E501 :return: The size of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): """Sets the size of this PageSentEmailProjection. Size of page requested # noqa: E501 :param size: The size of this PageSentEmailProjection. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and size is None: # noqa: E501 raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501 self._size = size @property def number(self): """Gets the number of this PageSentEmailProjection. # noqa: E501 Page number starting at 0 # noqa: E501 :return: The number of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._number @number.setter def number(self, number): """Sets the number of this PageSentEmailProjection. Page number starting at 0 # noqa: E501 :param number: The number of this PageSentEmailProjection. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and number is None: # noqa: E501 raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501 self._number = number @property def number_of_elements(self): """Gets the number_of_elements of this PageSentEmailProjection. # noqa: E501 Number of items returned # noqa: E501 :return: The number_of_elements of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._number_of_elements @number_of_elements.setter def number_of_elements(self, number_of_elements): """Sets the number_of_elements of this PageSentEmailProjection. Number of items returned # noqa: E501 :param number_of_elements: The number_of_elements of this PageSentEmailProjection. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and number_of_elements is None: # noqa: E501 raise ValueError("Invalid value for `number_of_elements`, must not be `None`") # noqa: E501 self._number_of_elements = number_of_elements @property def total_elements(self): """Gets the total_elements of this PageSentEmailProjection. # noqa: E501 Total number of items available for querying # noqa: E501 :return: The total_elements of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._total_elements @total_elements.setter def total_elements(self, total_elements): """Sets the total_elements of this PageSentEmailProjection. Total number of items available for querying # noqa: E501 :param total_elements: The total_elements of this PageSentEmailProjection. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and total_elements is None: # noqa: E501 raise ValueError("Invalid value for `total_elements`, must not be `None`") # noqa: E501 self._total_elements = total_elements @property def total_pages(self): """Gets the total_pages of this PageSentEmailProjection. # noqa: E501 Total number of pages available # noqa: E501 :return: The total_pages of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._total_pages @total_pages.setter def total_pages(self, total_pages): """Sets the total_pages of this PageSentEmailProjection. Total number of pages available # noqa: E501 :param total_pages: The total_pages of this PageSentEmailProjection. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and total_pages is None: # noqa: E501 raise ValueError("Invalid value for `total_pages`, must not be `None`") # noqa: E501 self._total_pages = total_pages @property def last(self): """Gets the last of this PageSentEmailProjection. # noqa: E501 :return: The last of this PageSentEmailProjection. # noqa: E501 :rtype: bool """ return self._last @last.setter def last(self, last): """Sets the last of this PageSentEmailProjection. :param last: The last of this PageSentEmailProjection. # noqa: E501 :type: bool """ self._last = last @property def sort(self): """Gets the sort of this PageSentEmailProjection. # noqa: E501 :return: The sort of this PageSentEmailProjection. # noqa: E501 :rtype: Sort """ return self._sort @sort.setter def sort(self, sort): """Sets the sort of this PageSentEmailProjection. :param sort: The sort of this PageSentEmailProjection. # noqa: E501 :type: Sort """ self._sort = sort @property def first(self): """Gets the first of this PageSentEmailProjection. # noqa: E501 :return: The first of this PageSentEmailProjection. # noqa: E501 :rtype: bool """ return self._first @first.setter def first(self, first): """Sets the first of this PageSentEmailProjection. :param first: The first of this PageSentEmailProjection. # noqa: E501 :type: bool """ self._first = first @property def empty(self): """Gets the empty of this PageSentEmailProjection. # noqa: E501 :return: The empty of this PageSentEmailProjection. # noqa: E501 :rtype: bool """ return self._empty @empty.setter def empty(self, empty): """Sets the empty of this PageSentEmailProjection. :param empty: The empty of this PageSentEmailProjection. # noqa: E501 :type: bool """ self._empty = empty def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, PageSentEmailProjection): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" if not isinstance(other, PageSentEmailProjection): return True return self.to_dict() != other.to_dict()
Class variables
var attribute_map
var openapi_types
Instance variables
var content
-
Gets the content of this PageSentEmailProjection. # noqa: E501
Collection of items # noqa: E501
:return: The content of this PageSentEmailProjection. # noqa: E501 :rtype: list[SentEmailProjection]
Expand source code
@property def content(self): """Gets the content of this PageSentEmailProjection. # noqa: E501 Collection of items # noqa: E501 :return: The content of this PageSentEmailProjection. # noqa: E501 :rtype: list[SentEmailProjection] """ return self._content
var empty
-
Gets the empty of this PageSentEmailProjection. # noqa: E501
:return: The empty of this PageSentEmailProjection. # noqa: E501 :rtype: bool
Expand source code
@property def empty(self): """Gets the empty of this PageSentEmailProjection. # noqa: E501 :return: The empty of this PageSentEmailProjection. # noqa: E501 :rtype: bool """ return self._empty
var first
-
Gets the first of this PageSentEmailProjection. # noqa: E501
:return: The first of this PageSentEmailProjection. # noqa: E501 :rtype: bool
Expand source code
@property def first(self): """Gets the first of this PageSentEmailProjection. # noqa: E501 :return: The first of this PageSentEmailProjection. # noqa: E501 :rtype: bool """ return self._first
var last
-
Gets the last of this PageSentEmailProjection. # noqa: E501
:return: The last of this PageSentEmailProjection. # noqa: E501 :rtype: bool
Expand source code
@property def last(self): """Gets the last of this PageSentEmailProjection. # noqa: E501 :return: The last of this PageSentEmailProjection. # noqa: E501 :rtype: bool """ return self._last
var number
-
Gets the number of this PageSentEmailProjection. # noqa: E501
Page number starting at 0 # noqa: E501
:return: The number of this PageSentEmailProjection. # noqa: E501 :rtype: int
Expand source code
@property def number(self): """Gets the number of this PageSentEmailProjection. # noqa: E501 Page number starting at 0 # noqa: E501 :return: The number of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._number
var number_of_elements
-
Gets the number_of_elements of this PageSentEmailProjection. # noqa: E501
Number of items returned # noqa: E501
:return: The number_of_elements of this PageSentEmailProjection. # noqa: E501 :rtype: int
Expand source code
@property def number_of_elements(self): """Gets the number_of_elements of this PageSentEmailProjection. # noqa: E501 Number of items returned # noqa: E501 :return: The number_of_elements of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._number_of_elements
var pageable
-
Gets the pageable of this PageSentEmailProjection. # noqa: E501
:return: The pageable of this PageSentEmailProjection. # noqa: E501 :rtype: PageableObject
Expand source code
@property def pageable(self): """Gets the pageable of this PageSentEmailProjection. # noqa: E501 :return: The pageable of this PageSentEmailProjection. # noqa: E501 :rtype: PageableObject """ return self._pageable
var size
-
Gets the size of this PageSentEmailProjection. # noqa: E501
Size of page requested # noqa: E501
:return: The size of this PageSentEmailProjection. # noqa: E501 :rtype: int
Expand source code
@property def size(self): """Gets the size of this PageSentEmailProjection. # noqa: E501 Size of page requested # noqa: E501 :return: The size of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._size
var sort
-
Gets the sort of this PageSentEmailProjection. # noqa: E501
:return: The sort of this PageSentEmailProjection. # noqa: E501 :rtype: Sort
Expand source code
@property def sort(self): """Gets the sort of this PageSentEmailProjection. # noqa: E501 :return: The sort of this PageSentEmailProjection. # noqa: E501 :rtype: Sort """ return self._sort
var total
-
Gets the total of this PageSentEmailProjection. # noqa: E501
:return: The total of this PageSentEmailProjection. # noqa: E501 :rtype: int
Expand source code
@property def total(self): """Gets the total of this PageSentEmailProjection. # noqa: E501 :return: The total of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._total
var total_elements
-
Gets the total_elements of this PageSentEmailProjection. # noqa: E501
Total number of items available for querying # noqa: E501
:return: The total_elements of this PageSentEmailProjection. # noqa: E501 :rtype: int
Expand source code
@property def total_elements(self): """Gets the total_elements of this PageSentEmailProjection. # noqa: E501 Total number of items available for querying # noqa: E501 :return: The total_elements of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._total_elements
var total_pages
-
Gets the total_pages of this PageSentEmailProjection. # noqa: E501
Total number of pages available # noqa: E501
:return: The total_pages of this PageSentEmailProjection. # noqa: E501 :rtype: int
Expand source code
@property def total_pages(self): """Gets the total_pages of this PageSentEmailProjection. # noqa: E501 Total number of pages available # noqa: E501 :return: The total_pages of this PageSentEmailProjection. # noqa: E501 :rtype: int """ return self._total_pages
Methods
def to_dict(self)
-
Returns the model properties as a dict
Expand source code
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result
def to_str(self)
-
Returns the string representation of the model
Expand source code
def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict())