Module mailslurp_client.models.sending_connection_smtp_defaults

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 SendingConnectionSmtpDefaults (host=None, host_options=None, ports=None, recommended_port=None, recommended_security=None, default_username=None, username_hint=None, password_hint=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.

SendingConnectionSmtpDefaults - a model defined in OpenAPI

Expand source code
class SendingConnectionSmtpDefaults(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 = {
        'host': 'str',
        'host_options': 'list[SendingConnectionSmtpHostOption]',
        'ports': 'list[int]',
        'recommended_port': 'int',
        'recommended_security': 'str',
        'default_username': 'str',
        'username_hint': 'str',
        'password_hint': 'str'
    }

    attribute_map = {
        'host': 'host',
        'host_options': 'hostOptions',
        'ports': 'ports',
        'recommended_port': 'recommendedPort',
        'recommended_security': 'recommendedSecurity',
        'default_username': 'defaultUsername',
        'username_hint': 'usernameHint',
        'password_hint': 'passwordHint'
    }

    def __init__(self, host=None, host_options=None, ports=None, recommended_port=None, recommended_security=None, default_username=None, username_hint=None, password_hint=None, local_vars_configuration=None):  # noqa: E501
        """SendingConnectionSmtpDefaults - 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._host = None
        self._host_options = None
        self._ports = None
        self._recommended_port = None
        self._recommended_security = None
        self._default_username = None
        self._username_hint = None
        self._password_hint = None
        self.discriminator = None

        self.host = host
        self.host_options = host_options
        self.ports = ports
        self.recommended_port = recommended_port
        self.recommended_security = recommended_security
        self.default_username = default_username
        self.username_hint = username_hint
        self.password_hint = password_hint

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


        :return: The host of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: str
        """
        return self._host

    @host.setter
    def host(self, host):
        """Sets the host of this SendingConnectionSmtpDefaults.


        :param host: The host of this SendingConnectionSmtpDefaults.  # noqa: E501
        :type: str
        """

        self._host = host

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


        :return: The host_options of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: list[SendingConnectionSmtpHostOption]
        """
        return self._host_options

    @host_options.setter
    def host_options(self, host_options):
        """Sets the host_options of this SendingConnectionSmtpDefaults.


        :param host_options: The host_options of this SendingConnectionSmtpDefaults.  # noqa: E501
        :type: list[SendingConnectionSmtpHostOption]
        """
        if self.local_vars_configuration.client_side_validation and host_options is None:  # noqa: E501
            raise ValueError("Invalid value for `host_options`, must not be `None`")  # noqa: E501

        self._host_options = host_options

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


        :return: The ports of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: list[int]
        """
        return self._ports

    @ports.setter
    def ports(self, ports):
        """Sets the ports of this SendingConnectionSmtpDefaults.


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

        self._ports = ports

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


        :return: The recommended_port of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: int
        """
        return self._recommended_port

    @recommended_port.setter
    def recommended_port(self, recommended_port):
        """Sets the recommended_port of this SendingConnectionSmtpDefaults.


        :param recommended_port: The recommended_port of this SendingConnectionSmtpDefaults.  # noqa: E501
        :type: int
        """

        self._recommended_port = recommended_port

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


        :return: The recommended_security of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: str
        """
        return self._recommended_security

    @recommended_security.setter
    def recommended_security(self, recommended_security):
        """Sets the recommended_security of this SendingConnectionSmtpDefaults.


        :param recommended_security: The recommended_security of this SendingConnectionSmtpDefaults.  # noqa: E501
        :type: str
        """
        allowed_values = [None,"START_TLS", "TLS"]  # noqa: E501
        if self.local_vars_configuration.client_side_validation and recommended_security not in allowed_values:  # noqa: E501
            raise ValueError(
                "Invalid value for `recommended_security` ({0}), must be one of {1}"  # noqa: E501
                .format(recommended_security, allowed_values)
            )

        self._recommended_security = recommended_security

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


        :return: The default_username of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: str
        """
        return self._default_username

    @default_username.setter
    def default_username(self, default_username):
        """Sets the default_username of this SendingConnectionSmtpDefaults.


        :param default_username: The default_username of this SendingConnectionSmtpDefaults.  # noqa: E501
        :type: str
        """

        self._default_username = default_username

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


        :return: The username_hint of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: str
        """
        return self._username_hint

    @username_hint.setter
    def username_hint(self, username_hint):
        """Sets the username_hint of this SendingConnectionSmtpDefaults.


        :param username_hint: The username_hint of this SendingConnectionSmtpDefaults.  # noqa: E501
        :type: str
        """

        self._username_hint = username_hint

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


        :return: The password_hint of this SendingConnectionSmtpDefaults.  # noqa: E501
        :rtype: str
        """
        return self._password_hint

    @password_hint.setter
    def password_hint(self, password_hint):
        """Sets the password_hint of this SendingConnectionSmtpDefaults.


        :param password_hint: The password_hint of this SendingConnectionSmtpDefaults.  # noqa: E501
        :type: str
        """

        self._password_hint = password_hint

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

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

Class variables

var attribute_map
var openapi_types

Instance variables

prop default_username

Gets the default_username of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The default_username of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: str

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


    :return: The default_username of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: str
    """
    return self._default_username
prop host

Gets the host of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The host of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: str

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


    :return: The host of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: str
    """
    return self._host
prop host_options

Gets the host_options of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The host_options of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: list[SendingConnectionSmtpHostOption]

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


    :return: The host_options of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: list[SendingConnectionSmtpHostOption]
    """
    return self._host_options
prop password_hint

Gets the password_hint of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The password_hint of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: str

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


    :return: The password_hint of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: str
    """
    return self._password_hint
prop ports

Gets the ports of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The ports of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: list[int]

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


    :return: The ports of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: list[int]
    """
    return self._ports
prop recommended_port

Gets the recommended_port of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The recommended_port of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: int

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


    :return: The recommended_port of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: int
    """
    return self._recommended_port
prop recommended_security

Gets the recommended_security of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The recommended_security of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: str

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


    :return: The recommended_security of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: str
    """
    return self._recommended_security
prop username_hint

Gets the username_hint of this SendingConnectionSmtpDefaults. # noqa: E501

:return: The username_hint of this SendingConnectionSmtpDefaults. # noqa: E501 :rtype: str

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


    :return: The username_hint of this SendingConnectionSmtpDefaults.  # noqa: E501
    :rtype: str
    """
    return self._username_hint

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model