Module mailslurp_client.models.agent_conversation_claim_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 AgentConversationClaimDto (claim_id=None, conversation_id=None, api_key_entity_id=None, worker_id=None, acquired_at=None, expires_at=None, conversation_version=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.

AgentConversationClaimDto - a model defined in OpenAPI

Expand source code
class AgentConversationClaimDto(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 = {
        'claim_id': 'str',
        'conversation_id': 'str',
        'api_key_entity_id': 'str',
        'worker_id': 'str',
        'acquired_at': 'datetime',
        'expires_at': 'datetime',
        'conversation_version': 'int'
    }

    attribute_map = {
        'claim_id': 'claimId',
        'conversation_id': 'conversationId',
        'api_key_entity_id': 'apiKeyEntityId',
        'worker_id': 'workerId',
        'acquired_at': 'acquiredAt',
        'expires_at': 'expiresAt',
        'conversation_version': 'conversationVersion'
    }

    def __init__(self, claim_id=None, conversation_id=None, api_key_entity_id=None, worker_id=None, acquired_at=None, expires_at=None, conversation_version=None, local_vars_configuration=None):  # noqa: E501
        """AgentConversationClaimDto - 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._claim_id = None
        self._conversation_id = None
        self._api_key_entity_id = None
        self._worker_id = None
        self._acquired_at = None
        self._expires_at = None
        self._conversation_version = None
        self.discriminator = None

        self.claim_id = claim_id
        self.conversation_id = conversation_id
        self.api_key_entity_id = api_key_entity_id
        self.worker_id = worker_id
        self.acquired_at = acquired_at
        self.expires_at = expires_at
        self.conversation_version = conversation_version

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


        :return: The claim_id of this AgentConversationClaimDto.  # noqa: E501
        :rtype: str
        """
        return self._claim_id

    @claim_id.setter
    def claim_id(self, claim_id):
        """Sets the claim_id of this AgentConversationClaimDto.


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

        self._claim_id = claim_id

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


        :return: The conversation_id of this AgentConversationClaimDto.  # noqa: E501
        :rtype: str
        """
        return self._conversation_id

    @conversation_id.setter
    def conversation_id(self, conversation_id):
        """Sets the conversation_id of this AgentConversationClaimDto.


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

        self._conversation_id = conversation_id

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


        :return: The api_key_entity_id of this AgentConversationClaimDto.  # noqa: E501
        :rtype: str
        """
        return self._api_key_entity_id

    @api_key_entity_id.setter
    def api_key_entity_id(self, api_key_entity_id):
        """Sets the api_key_entity_id of this AgentConversationClaimDto.


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

        self._api_key_entity_id = api_key_entity_id

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


        :return: The worker_id of this AgentConversationClaimDto.  # noqa: E501
        :rtype: str
        """
        return self._worker_id

    @worker_id.setter
    def worker_id(self, worker_id):
        """Sets the worker_id of this AgentConversationClaimDto.


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

        self._worker_id = worker_id

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


        :return: The acquired_at of this AgentConversationClaimDto.  # noqa: E501
        :rtype: datetime
        """
        return self._acquired_at

    @acquired_at.setter
    def acquired_at(self, acquired_at):
        """Sets the acquired_at of this AgentConversationClaimDto.


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

        self._acquired_at = acquired_at

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


        :return: The expires_at of this AgentConversationClaimDto.  # noqa: E501
        :rtype: datetime
        """
        return self._expires_at

    @expires_at.setter
    def expires_at(self, expires_at):
        """Sets the expires_at of this AgentConversationClaimDto.


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

        self._expires_at = expires_at

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


        :return: The conversation_version of this AgentConversationClaimDto.  # noqa: E501
        :rtype: int
        """
        return self._conversation_version

    @conversation_version.setter
    def conversation_version(self, conversation_version):
        """Sets the conversation_version of this AgentConversationClaimDto.


        :param conversation_version: The conversation_version of this AgentConversationClaimDto.  # noqa: E501
        :type: int
        """

        self._conversation_version = conversation_version

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

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

Class variables

var attribute_map
var openapi_types

Instance variables

prop acquired_at

Gets the acquired_at of this AgentConversationClaimDto. # noqa: E501

:return: The acquired_at of this AgentConversationClaimDto. # noqa: E501 :rtype: datetime

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


    :return: The acquired_at of this AgentConversationClaimDto.  # noqa: E501
    :rtype: datetime
    """
    return self._acquired_at
prop api_key_entity_id

Gets the api_key_entity_id of this AgentConversationClaimDto. # noqa: E501

:return: The api_key_entity_id of this AgentConversationClaimDto. # noqa: E501 :rtype: str

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


    :return: The api_key_entity_id of this AgentConversationClaimDto.  # noqa: E501
    :rtype: str
    """
    return self._api_key_entity_id
prop claim_id

Gets the claim_id of this AgentConversationClaimDto. # noqa: E501

:return: The claim_id of this AgentConversationClaimDto. # noqa: E501 :rtype: str

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


    :return: The claim_id of this AgentConversationClaimDto.  # noqa: E501
    :rtype: str
    """
    return self._claim_id
prop conversation_id

Gets the conversation_id of this AgentConversationClaimDto. # noqa: E501

:return: The conversation_id of this AgentConversationClaimDto. # noqa: E501 :rtype: str

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


    :return: The conversation_id of this AgentConversationClaimDto.  # noqa: E501
    :rtype: str
    """
    return self._conversation_id
prop conversation_version

Gets the conversation_version of this AgentConversationClaimDto. # noqa: E501

:return: The conversation_version of this AgentConversationClaimDto. # noqa: E501 :rtype: int

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


    :return: The conversation_version of this AgentConversationClaimDto.  # noqa: E501
    :rtype: int
    """
    return self._conversation_version
prop expires_at

Gets the expires_at of this AgentConversationClaimDto. # noqa: E501

:return: The expires_at of this AgentConversationClaimDto. # noqa: E501 :rtype: datetime

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


    :return: The expires_at of this AgentConversationClaimDto.  # noqa: E501
    :rtype: datetime
    """
    return self._expires_at
prop worker_id

Gets the worker_id of this AgentConversationClaimDto. # noqa: E501

:return: The worker_id of this AgentConversationClaimDto. # noqa: E501 :rtype: str

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


    :return: The worker_id of this AgentConversationClaimDto.  # noqa: E501
    :rtype: str
    """
    return self._worker_id

Methods

def to_dict(self)

Returns the model properties as a dict

def to_str(self)

Returns the string representation of the model