Module mailslurp_client.models.user_storage_insight_item_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 UserStorageInsightItemDto (id=None, inbox_id=None, domain_id=None, label=None, email_address=None, domain=None, total_bytes=None, email_bytes=None, sent_email_bytes=None, attachment_bytes=None, item_count=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.

UserStorageInsightItemDto - a model defined in OpenAPI

Expand source code
class UserStorageInsightItemDto(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 = {
        'id': 'str',
        'inbox_id': 'str',
        'domain_id': 'str',
        'label': 'str',
        'email_address': 'str',
        'domain': 'str',
        'total_bytes': 'int',
        'email_bytes': 'int',
        'sent_email_bytes': 'int',
        'attachment_bytes': 'int',
        'item_count': 'int'
    }

    attribute_map = {
        'id': 'id',
        'inbox_id': 'inboxId',
        'domain_id': 'domainId',
        'label': 'label',
        'email_address': 'emailAddress',
        'domain': 'domain',
        'total_bytes': 'totalBytes',
        'email_bytes': 'emailBytes',
        'sent_email_bytes': 'sentEmailBytes',
        'attachment_bytes': 'attachmentBytes',
        'item_count': 'itemCount'
    }

    def __init__(self, id=None, inbox_id=None, domain_id=None, label=None, email_address=None, domain=None, total_bytes=None, email_bytes=None, sent_email_bytes=None, attachment_bytes=None, item_count=None, local_vars_configuration=None):  # noqa: E501
        """UserStorageInsightItemDto - 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._id = None
        self._inbox_id = None
        self._domain_id = None
        self._label = None
        self._email_address = None
        self._domain = None
        self._total_bytes = None
        self._email_bytes = None
        self._sent_email_bytes = None
        self._attachment_bytes = None
        self._item_count = None
        self.discriminator = None

        self.id = id
        self.inbox_id = inbox_id
        self.domain_id = domain_id
        self.label = label
        self.email_address = email_address
        self.domain = domain
        self.total_bytes = total_bytes
        self.email_bytes = email_bytes
        self.sent_email_bytes = sent_email_bytes
        self.attachment_bytes = attachment_bytes
        self.item_count = item_count

    @property
    def id(self):
        """Gets the id of this UserStorageInsightItemDto.  # noqa: E501


        :return: The id of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this UserStorageInsightItemDto.


        :param id: The id of this UserStorageInsightItemDto.  # noqa: E501
        :type: str
        """

        self._id = id

    @property
    def inbox_id(self):
        """Gets the inbox_id of this UserStorageInsightItemDto.  # noqa: E501


        :return: The inbox_id of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: str
        """
        return self._inbox_id

    @inbox_id.setter
    def inbox_id(self, inbox_id):
        """Sets the inbox_id of this UserStorageInsightItemDto.


        :param inbox_id: The inbox_id of this UserStorageInsightItemDto.  # noqa: E501
        :type: str
        """

        self._inbox_id = inbox_id

    @property
    def domain_id(self):
        """Gets the domain_id of this UserStorageInsightItemDto.  # noqa: E501


        :return: The domain_id of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: str
        """
        return self._domain_id

    @domain_id.setter
    def domain_id(self, domain_id):
        """Sets the domain_id of this UserStorageInsightItemDto.


        :param domain_id: The domain_id of this UserStorageInsightItemDto.  # noqa: E501
        :type: str
        """

        self._domain_id = domain_id

    @property
    def label(self):
        """Gets the label of this UserStorageInsightItemDto.  # noqa: E501


        :return: The label of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: str
        """
        return self._label

    @label.setter
    def label(self, label):
        """Sets the label of this UserStorageInsightItemDto.


        :param label: The label of this UserStorageInsightItemDto.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and label is None:  # noqa: E501
            raise ValueError("Invalid value for `label`, must not be `None`")  # noqa: E501

        self._label = label

    @property
    def email_address(self):
        """Gets the email_address of this UserStorageInsightItemDto.  # noqa: E501


        :return: The email_address of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: str
        """
        return self._email_address

    @email_address.setter
    def email_address(self, email_address):
        """Sets the email_address of this UserStorageInsightItemDto.


        :param email_address: The email_address of this UserStorageInsightItemDto.  # noqa: E501
        :type: str
        """

        self._email_address = email_address

    @property
    def domain(self):
        """Gets the domain of this UserStorageInsightItemDto.  # noqa: E501


        :return: The domain of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: str
        """
        return self._domain

    @domain.setter
    def domain(self, domain):
        """Sets the domain of this UserStorageInsightItemDto.


        :param domain: The domain of this UserStorageInsightItemDto.  # noqa: E501
        :type: str
        """

        self._domain = domain

    @property
    def total_bytes(self):
        """Gets the total_bytes of this UserStorageInsightItemDto.  # noqa: E501


        :return: The total_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: int
        """
        return self._total_bytes

    @total_bytes.setter
    def total_bytes(self, total_bytes):
        """Sets the total_bytes of this UserStorageInsightItemDto.


        :param total_bytes: The total_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and total_bytes is None:  # noqa: E501
            raise ValueError("Invalid value for `total_bytes`, must not be `None`")  # noqa: E501

        self._total_bytes = total_bytes

    @property
    def email_bytes(self):
        """Gets the email_bytes of this UserStorageInsightItemDto.  # noqa: E501


        :return: The email_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: int
        """
        return self._email_bytes

    @email_bytes.setter
    def email_bytes(self, email_bytes):
        """Sets the email_bytes of this UserStorageInsightItemDto.


        :param email_bytes: The email_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and email_bytes is None:  # noqa: E501
            raise ValueError("Invalid value for `email_bytes`, must not be `None`")  # noqa: E501

        self._email_bytes = email_bytes

    @property
    def sent_email_bytes(self):
        """Gets the sent_email_bytes of this UserStorageInsightItemDto.  # noqa: E501


        :return: The sent_email_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: int
        """
        return self._sent_email_bytes

    @sent_email_bytes.setter
    def sent_email_bytes(self, sent_email_bytes):
        """Sets the sent_email_bytes of this UserStorageInsightItemDto.


        :param sent_email_bytes: The sent_email_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and sent_email_bytes is None:  # noqa: E501
            raise ValueError("Invalid value for `sent_email_bytes`, must not be `None`")  # noqa: E501

        self._sent_email_bytes = sent_email_bytes

    @property
    def attachment_bytes(self):
        """Gets the attachment_bytes of this UserStorageInsightItemDto.  # noqa: E501


        :return: The attachment_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: int
        """
        return self._attachment_bytes

    @attachment_bytes.setter
    def attachment_bytes(self, attachment_bytes):
        """Sets the attachment_bytes of this UserStorageInsightItemDto.


        :param attachment_bytes: The attachment_bytes of this UserStorageInsightItemDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and attachment_bytes is None:  # noqa: E501
            raise ValueError("Invalid value for `attachment_bytes`, must not be `None`")  # noqa: E501

        self._attachment_bytes = attachment_bytes

    @property
    def item_count(self):
        """Gets the item_count of this UserStorageInsightItemDto.  # noqa: E501


        :return: The item_count of this UserStorageInsightItemDto.  # noqa: E501
        :rtype: int
        """
        return self._item_count

    @item_count.setter
    def item_count(self, item_count):
        """Sets the item_count of this UserStorageInsightItemDto.


        :param item_count: The item_count of this UserStorageInsightItemDto.  # noqa: E501
        :type: int
        """
        if self.local_vars_configuration.client_side_validation and item_count is None:  # noqa: E501
            raise ValueError("Invalid value for `item_count`, must not be `None`")  # noqa: E501

        self._item_count = item_count

    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, UserStorageInsightItemDto):
            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, UserStorageInsightItemDto):
            return True

        return self.to_dict() != other.to_dict()

Class variables

var attribute_map
var openapi_types

Instance variables

prop attachment_bytes

Gets the attachment_bytes of this UserStorageInsightItemDto. # noqa: E501

:return: The attachment_bytes of this UserStorageInsightItemDto. # noqa: E501 :rtype: int

Expand source code
@property
def attachment_bytes(self):
    """Gets the attachment_bytes of this UserStorageInsightItemDto.  # noqa: E501


    :return: The attachment_bytes of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: int
    """
    return self._attachment_bytes
prop domain

Gets the domain of this UserStorageInsightItemDto. # noqa: E501

:return: The domain of this UserStorageInsightItemDto. # noqa: E501 :rtype: str

Expand source code
@property
def domain(self):
    """Gets the domain of this UserStorageInsightItemDto.  # noqa: E501


    :return: The domain of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: str
    """
    return self._domain
prop domain_id

Gets the domain_id of this UserStorageInsightItemDto. # noqa: E501

:return: The domain_id of this UserStorageInsightItemDto. # noqa: E501 :rtype: str

Expand source code
@property
def domain_id(self):
    """Gets the domain_id of this UserStorageInsightItemDto.  # noqa: E501


    :return: The domain_id of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: str
    """
    return self._domain_id
prop email_address

Gets the email_address of this UserStorageInsightItemDto. # noqa: E501

:return: The email_address of this UserStorageInsightItemDto. # noqa: E501 :rtype: str

Expand source code
@property
def email_address(self):
    """Gets the email_address of this UserStorageInsightItemDto.  # noqa: E501


    :return: The email_address of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: str
    """
    return self._email_address
prop email_bytes

Gets the email_bytes of this UserStorageInsightItemDto. # noqa: E501

:return: The email_bytes of this UserStorageInsightItemDto. # noqa: E501 :rtype: int

Expand source code
@property
def email_bytes(self):
    """Gets the email_bytes of this UserStorageInsightItemDto.  # noqa: E501


    :return: The email_bytes of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: int
    """
    return self._email_bytes
prop id

Gets the id of this UserStorageInsightItemDto. # noqa: E501

:return: The id of this UserStorageInsightItemDto. # noqa: E501 :rtype: str

Expand source code
@property
def id(self):
    """Gets the id of this UserStorageInsightItemDto.  # noqa: E501


    :return: The id of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: str
    """
    return self._id
prop inbox_id

Gets the inbox_id of this UserStorageInsightItemDto. # noqa: E501

:return: The inbox_id of this UserStorageInsightItemDto. # noqa: E501 :rtype: str

Expand source code
@property
def inbox_id(self):
    """Gets the inbox_id of this UserStorageInsightItemDto.  # noqa: E501


    :return: The inbox_id of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: str
    """
    return self._inbox_id
prop item_count

Gets the item_count of this UserStorageInsightItemDto. # noqa: E501

:return: The item_count of this UserStorageInsightItemDto. # noqa: E501 :rtype: int

Expand source code
@property
def item_count(self):
    """Gets the item_count of this UserStorageInsightItemDto.  # noqa: E501


    :return: The item_count of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: int
    """
    return self._item_count
prop label

Gets the label of this UserStorageInsightItemDto. # noqa: E501

:return: The label of this UserStorageInsightItemDto. # noqa: E501 :rtype: str

Expand source code
@property
def label(self):
    """Gets the label of this UserStorageInsightItemDto.  # noqa: E501


    :return: The label of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: str
    """
    return self._label
prop sent_email_bytes

Gets the sent_email_bytes of this UserStorageInsightItemDto. # noqa: E501

:return: The sent_email_bytes of this UserStorageInsightItemDto. # noqa: E501 :rtype: int

Expand source code
@property
def sent_email_bytes(self):
    """Gets the sent_email_bytes of this UserStorageInsightItemDto.  # noqa: E501


    :return: The sent_email_bytes of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: int
    """
    return self._sent_email_bytes
prop total_bytes

Gets the total_bytes of this UserStorageInsightItemDto. # noqa: E501

:return: The total_bytes of this UserStorageInsightItemDto. # noqa: E501 :rtype: int

Expand source code
@property
def total_bytes(self):
    """Gets the total_bytes of this UserStorageInsightItemDto.  # noqa: E501


    :return: The total_bytes of this UserStorageInsightItemDto.  # noqa: E501
    :rtype: int
    """
    return self._total_bytes

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model