Module mailslurp_client.models.delivery_sender_capacity_dto
MailSlurp API
MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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
Classes
class DeliverySenderCapacityDto (included_sender_seats=None, purchased_sender_seats=None, total_sender_capacity=None, active_sender_connections=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.
DeliverySenderCapacityDto - a model defined in OpenAPI
Expand source code
class DeliverySenderCapacityDto(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 = { 'included_sender_seats': 'int', 'purchased_sender_seats': 'int', 'total_sender_capacity': 'int', 'active_sender_connections': 'int' } attribute_map = { 'included_sender_seats': 'includedSenderSeats', 'purchased_sender_seats': 'purchasedSenderSeats', 'total_sender_capacity': 'totalSenderCapacity', 'active_sender_connections': 'activeSenderConnections' } def __init__(self, included_sender_seats=None, purchased_sender_seats=None, total_sender_capacity=None, active_sender_connections=None, local_vars_configuration=None): # noqa: E501 """DeliverySenderCapacityDto - 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._included_sender_seats = None self._purchased_sender_seats = None self._total_sender_capacity = None self._active_sender_connections = None self.discriminator = None self.included_sender_seats = included_sender_seats self.purchased_sender_seats = purchased_sender_seats self.total_sender_capacity = total_sender_capacity self.active_sender_connections = active_sender_connections @property def included_sender_seats(self): """Gets the included_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :return: The included_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._included_sender_seats @included_sender_seats.setter def included_sender_seats(self, included_sender_seats): """Sets the included_sender_seats of this DeliverySenderCapacityDto. :param included_sender_seats: The included_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and included_sender_seats is None: # noqa: E501 raise ValueError("Invalid value for `included_sender_seats`, must not be `None`") # noqa: E501 self._included_sender_seats = included_sender_seats @property def purchased_sender_seats(self): """Gets the purchased_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :return: The purchased_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._purchased_sender_seats @purchased_sender_seats.setter def purchased_sender_seats(self, purchased_sender_seats): """Sets the purchased_sender_seats of this DeliverySenderCapacityDto. :param purchased_sender_seats: The purchased_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and purchased_sender_seats is None: # noqa: E501 raise ValueError("Invalid value for `purchased_sender_seats`, must not be `None`") # noqa: E501 self._purchased_sender_seats = purchased_sender_seats @property def total_sender_capacity(self): """Gets the total_sender_capacity of this DeliverySenderCapacityDto. # noqa: E501 :return: The total_sender_capacity of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._total_sender_capacity @total_sender_capacity.setter def total_sender_capacity(self, total_sender_capacity): """Sets the total_sender_capacity of this DeliverySenderCapacityDto. :param total_sender_capacity: The total_sender_capacity of this DeliverySenderCapacityDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and total_sender_capacity is None: # noqa: E501 raise ValueError("Invalid value for `total_sender_capacity`, must not be `None`") # noqa: E501 self._total_sender_capacity = total_sender_capacity @property def active_sender_connections(self): """Gets the active_sender_connections of this DeliverySenderCapacityDto. # noqa: E501 :return: The active_sender_connections of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._active_sender_connections @active_sender_connections.setter def active_sender_connections(self, active_sender_connections): """Sets the active_sender_connections of this DeliverySenderCapacityDto. :param active_sender_connections: The active_sender_connections of this DeliverySenderCapacityDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and active_sender_connections is None: # noqa: E501 raise ValueError("Invalid value for `active_sender_connections`, must not be `None`") # noqa: E501 self._active_sender_connections = active_sender_connections 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, DeliverySenderCapacityDto): 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, DeliverySenderCapacityDto): return True return self.to_dict() != other.to_dict()Class variables
var attribute_mapvar openapi_types
Instance variables
prop active_sender_connections-
Gets the active_sender_connections of this DeliverySenderCapacityDto. # noqa: E501
:return: The active_sender_connections of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int
Expand source code
@property def active_sender_connections(self): """Gets the active_sender_connections of this DeliverySenderCapacityDto. # noqa: E501 :return: The active_sender_connections of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._active_sender_connections prop included_sender_seats-
Gets the included_sender_seats of this DeliverySenderCapacityDto. # noqa: E501
:return: The included_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int
Expand source code
@property def included_sender_seats(self): """Gets the included_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :return: The included_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._included_sender_seats prop purchased_sender_seats-
Gets the purchased_sender_seats of this DeliverySenderCapacityDto. # noqa: E501
:return: The purchased_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int
Expand source code
@property def purchased_sender_seats(self): """Gets the purchased_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :return: The purchased_sender_seats of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._purchased_sender_seats prop total_sender_capacity-
Gets the total_sender_capacity of this DeliverySenderCapacityDto. # noqa: E501
:return: The total_sender_capacity of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int
Expand source code
@property def total_sender_capacity(self): """Gets the total_sender_capacity of this DeliverySenderCapacityDto. # noqa: E501 :return: The total_sender_capacity of this DeliverySenderCapacityDto. # noqa: E501 :rtype: int """ return self._total_sender_capacity
Methods
def to_dict(self)-
Returns the model properties as a dict
def to_str(self)-
Returns the string representation of the model