Module mailslurp_client.models.environment_accounts_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 EnvironmentAccountsDto (account_group_id=None, owner_user_id=None, caller_user_id=None, caller_role=None, active_environment_user_id=None, active_environment_label=None, links=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.

EnvironmentAccountsDto - a model defined in OpenAPI

Expand source code
class EnvironmentAccountsDto(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 = {
        'account_group_id': 'str',
        'owner_user_id': 'str',
        'caller_user_id': 'str',
        'caller_role': 'str',
        'active_environment_user_id': 'str',
        'active_environment_label': 'str',
        'links': 'list[EnvironmentAccountLinkDto]'
    }

    attribute_map = {
        'account_group_id': 'accountGroupId',
        'owner_user_id': 'ownerUserId',
        'caller_user_id': 'callerUserId',
        'caller_role': 'callerRole',
        'active_environment_user_id': 'activeEnvironmentUserId',
        'active_environment_label': 'activeEnvironmentLabel',
        'links': 'links'
    }

    def __init__(self, account_group_id=None, owner_user_id=None, caller_user_id=None, caller_role=None, active_environment_user_id=None, active_environment_label=None, links=None, local_vars_configuration=None):  # noqa: E501
        """EnvironmentAccountsDto - 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._account_group_id = None
        self._owner_user_id = None
        self._caller_user_id = None
        self._caller_role = None
        self._active_environment_user_id = None
        self._active_environment_label = None
        self._links = None
        self.discriminator = None

        self.account_group_id = account_group_id
        self.owner_user_id = owner_user_id
        self.caller_user_id = caller_user_id
        self.caller_role = caller_role
        self.active_environment_user_id = active_environment_user_id
        self.active_environment_label = active_environment_label
        self.links = links

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


        :return: The account_group_id of this EnvironmentAccountsDto.  # noqa: E501
        :rtype: str
        """
        return self._account_group_id

    @account_group_id.setter
    def account_group_id(self, account_group_id):
        """Sets the account_group_id of this EnvironmentAccountsDto.


        :param account_group_id: The account_group_id of this EnvironmentAccountsDto.  # noqa: E501
        :type: str
        """

        self._account_group_id = account_group_id

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


        :return: The owner_user_id of this EnvironmentAccountsDto.  # noqa: E501
        :rtype: str
        """
        return self._owner_user_id

    @owner_user_id.setter
    def owner_user_id(self, owner_user_id):
        """Sets the owner_user_id of this EnvironmentAccountsDto.


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

        self._owner_user_id = owner_user_id

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


        :return: The caller_user_id of this EnvironmentAccountsDto.  # noqa: E501
        :rtype: str
        """
        return self._caller_user_id

    @caller_user_id.setter
    def caller_user_id(self, caller_user_id):
        """Sets the caller_user_id of this EnvironmentAccountsDto.


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

        self._caller_user_id = caller_user_id

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


        :return: The caller_role of this EnvironmentAccountsDto.  # noqa: E501
        :rtype: str
        """
        return self._caller_role

    @caller_role.setter
    def caller_role(self, caller_role):
        """Sets the caller_role of this EnvironmentAccountsDto.


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

        self._caller_role = caller_role

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


        :return: The active_environment_user_id of this EnvironmentAccountsDto.  # noqa: E501
        :rtype: str
        """
        return self._active_environment_user_id

    @active_environment_user_id.setter
    def active_environment_user_id(self, active_environment_user_id):
        """Sets the active_environment_user_id of this EnvironmentAccountsDto.


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

        self._active_environment_user_id = active_environment_user_id

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


        :return: The active_environment_label of this EnvironmentAccountsDto.  # noqa: E501
        :rtype: str
        """
        return self._active_environment_label

    @active_environment_label.setter
    def active_environment_label(self, active_environment_label):
        """Sets the active_environment_label of this EnvironmentAccountsDto.


        :param active_environment_label: The active_environment_label of this EnvironmentAccountsDto.  # noqa: E501
        :type: str
        """

        self._active_environment_label = active_environment_label

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


        :return: The links of this EnvironmentAccountsDto.  # noqa: E501
        :rtype: list[EnvironmentAccountLinkDto]
        """
        return self._links

    @links.setter
    def links(self, links):
        """Sets the links of this EnvironmentAccountsDto.


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

        self._links = links

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

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

Class variables

var attribute_map
var openapi_types

Instance variables

prop account_group_id

Gets the account_group_id of this EnvironmentAccountsDto. # noqa: E501

:return: The account_group_id of this EnvironmentAccountsDto. # noqa: E501 :rtype: str

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


    :return: The account_group_id of this EnvironmentAccountsDto.  # noqa: E501
    :rtype: str
    """
    return self._account_group_id
prop active_environment_label

Gets the active_environment_label of this EnvironmentAccountsDto. # noqa: E501

:return: The active_environment_label of this EnvironmentAccountsDto. # noqa: E501 :rtype: str

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


    :return: The active_environment_label of this EnvironmentAccountsDto.  # noqa: E501
    :rtype: str
    """
    return self._active_environment_label
prop active_environment_user_id

Gets the active_environment_user_id of this EnvironmentAccountsDto. # noqa: E501

:return: The active_environment_user_id of this EnvironmentAccountsDto. # noqa: E501 :rtype: str

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


    :return: The active_environment_user_id of this EnvironmentAccountsDto.  # noqa: E501
    :rtype: str
    """
    return self._active_environment_user_id
prop caller_role

Gets the caller_role of this EnvironmentAccountsDto. # noqa: E501

:return: The caller_role of this EnvironmentAccountsDto. # noqa: E501 :rtype: str

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


    :return: The caller_role of this EnvironmentAccountsDto.  # noqa: E501
    :rtype: str
    """
    return self._caller_role
prop caller_user_id

Gets the caller_user_id of this EnvironmentAccountsDto. # noqa: E501

:return: The caller_user_id of this EnvironmentAccountsDto. # noqa: E501 :rtype: str

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


    :return: The caller_user_id of this EnvironmentAccountsDto.  # noqa: E501
    :rtype: str
    """
    return self._caller_user_id

Gets the links of this EnvironmentAccountsDto. # noqa: E501

:return: The links of this EnvironmentAccountsDto. # noqa: E501 :rtype: list[EnvironmentAccountLinkDto]

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


    :return: The links of this EnvironmentAccountsDto.  # noqa: E501
    :rtype: list[EnvironmentAccountLinkDto]
    """
    return self._links
prop owner_user_id

Gets the owner_user_id of this EnvironmentAccountsDto. # noqa: E501

:return: The owner_user_id of this EnvironmentAccountsDto. # noqa: E501 :rtype: str

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


    :return: The owner_user_id of this EnvironmentAccountsDto.  # noqa: E501
    :rtype: str
    """
    return self._owner_user_id

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model