Module mailslurp_client.models.agent_conversation_handoff_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 AgentConversationHandoffDto (id=None, conversation_id=None, requested_by_api_key_entity_id=None, requested_by_user_id=None, reason_code=None, reason=None, priority=None, status=None, assigned_user_id=None, source_email_id=None, draft_id=None, version=None, created_at=None, updated_at=None, completed_at=None, source_sms_id=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.
AgentConversationHandoffDto - a model defined in OpenAPI
Expand source code
class AgentConversationHandoffDto(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', 'conversation_id': 'str', 'requested_by_api_key_entity_id': 'str', 'requested_by_user_id': 'str', 'reason_code': 'str', 'reason': 'str', 'priority': 'str', 'status': 'str', 'assigned_user_id': 'str', 'source_email_id': 'str', 'draft_id': 'str', 'version': 'int', 'created_at': 'datetime', 'updated_at': 'datetime', 'completed_at': 'datetime', 'source_sms_id': 'str', 'conversation_version': 'int' } attribute_map = { 'id': 'id', 'conversation_id': 'conversationId', 'requested_by_api_key_entity_id': 'requestedByApiKeyEntityId', 'requested_by_user_id': 'requestedByUserId', 'reason_code': 'reasonCode', 'reason': 'reason', 'priority': 'priority', 'status': 'status', 'assigned_user_id': 'assignedUserId', 'source_email_id': 'sourceEmailId', 'draft_id': 'draftId', 'version': 'version', 'created_at': 'createdAt', 'updated_at': 'updatedAt', 'completed_at': 'completedAt', 'source_sms_id': 'sourceSmsId', 'conversation_version': 'conversationVersion' } def __init__(self, id=None, conversation_id=None, requested_by_api_key_entity_id=None, requested_by_user_id=None, reason_code=None, reason=None, priority=None, status=None, assigned_user_id=None, source_email_id=None, draft_id=None, version=None, created_at=None, updated_at=None, completed_at=None, source_sms_id=None, conversation_version=None, local_vars_configuration=None): # noqa: E501 """AgentConversationHandoffDto - 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._conversation_id = None self._requested_by_api_key_entity_id = None self._requested_by_user_id = None self._reason_code = None self._reason = None self._priority = None self._status = None self._assigned_user_id = None self._source_email_id = None self._draft_id = None self._version = None self._created_at = None self._updated_at = None self._completed_at = None self._source_sms_id = None self._conversation_version = None self.discriminator = None self.id = id self.conversation_id = conversation_id self.requested_by_api_key_entity_id = requested_by_api_key_entity_id self.requested_by_user_id = requested_by_user_id self.reason_code = reason_code self.reason = reason self.priority = priority self.status = status self.assigned_user_id = assigned_user_id self.source_email_id = source_email_id self.draft_id = draft_id self.version = version self.created_at = created_at self.updated_at = updated_at self.completed_at = completed_at self.source_sms_id = source_sms_id self.conversation_version = conversation_version @property def id(self): """Gets the id of this AgentConversationHandoffDto. # noqa: E501 :return: The id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this AgentConversationHandoffDto. :param id: The id of this AgentConversationHandoffDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501 raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 self._id = id @property def conversation_id(self): """Gets the conversation_id of this AgentConversationHandoffDto. # noqa: E501 :return: The conversation_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._conversation_id @conversation_id.setter def conversation_id(self, conversation_id): """Sets the conversation_id of this AgentConversationHandoffDto. :param conversation_id: The conversation_id of this AgentConversationHandoffDto. # 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 requested_by_api_key_entity_id(self): """Gets the requested_by_api_key_entity_id of this AgentConversationHandoffDto. # noqa: E501 :return: The requested_by_api_key_entity_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._requested_by_api_key_entity_id @requested_by_api_key_entity_id.setter def requested_by_api_key_entity_id(self, requested_by_api_key_entity_id): """Sets the requested_by_api_key_entity_id of this AgentConversationHandoffDto. :param requested_by_api_key_entity_id: The requested_by_api_key_entity_id of this AgentConversationHandoffDto. # noqa: E501 :type: str """ self._requested_by_api_key_entity_id = requested_by_api_key_entity_id @property def requested_by_user_id(self): """Gets the requested_by_user_id of this AgentConversationHandoffDto. # noqa: E501 :return: The requested_by_user_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._requested_by_user_id @requested_by_user_id.setter def requested_by_user_id(self, requested_by_user_id): """Sets the requested_by_user_id of this AgentConversationHandoffDto. :param requested_by_user_id: The requested_by_user_id of this AgentConversationHandoffDto. # noqa: E501 :type: str """ self._requested_by_user_id = requested_by_user_id @property def reason_code(self): """Gets the reason_code of this AgentConversationHandoffDto. # noqa: E501 :return: The reason_code of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._reason_code @reason_code.setter def reason_code(self, reason_code): """Sets the reason_code of this AgentConversationHandoffDto. :param reason_code: The reason_code of this AgentConversationHandoffDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and reason_code is None: # noqa: E501 raise ValueError("Invalid value for `reason_code`, must not be `None`") # noqa: E501 self._reason_code = reason_code @property def reason(self): """Gets the reason of this AgentConversationHandoffDto. # noqa: E501 :return: The reason of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): """Sets the reason of this AgentConversationHandoffDto. :param reason: The reason of this AgentConversationHandoffDto. # noqa: E501 :type: str """ self._reason = reason @property def priority(self): """Gets the priority of this AgentConversationHandoffDto. # noqa: E501 :return: The priority of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._priority @priority.setter def priority(self, priority): """Sets the priority of this AgentConversationHandoffDto. :param priority: The priority of this AgentConversationHandoffDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and priority is None: # noqa: E501 raise ValueError("Invalid value for `priority`, must not be `None`") # noqa: E501 allowed_values = ["LOW", "NORMAL", "HIGH", "URGENT"] # noqa: E501 if self.local_vars_configuration.client_side_validation and priority not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `priority` ({0}), must be one of {1}" # noqa: E501 .format(priority, allowed_values) ) self._priority = priority @property def status(self): """Gets the status of this AgentConversationHandoffDto. # noqa: E501 :return: The status of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this AgentConversationHandoffDto. :param status: The status of this AgentConversationHandoffDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 allowed_values = ["REQUESTED", "ASSIGNED", "APPROVED", "REJECTED", "RESOLVED"] # noqa: E501 if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 .format(status, allowed_values) ) self._status = status @property def assigned_user_id(self): """Gets the assigned_user_id of this AgentConversationHandoffDto. # noqa: E501 :return: The assigned_user_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._assigned_user_id @assigned_user_id.setter def assigned_user_id(self, assigned_user_id): """Sets the assigned_user_id of this AgentConversationHandoffDto. :param assigned_user_id: The assigned_user_id of this AgentConversationHandoffDto. # noqa: E501 :type: str """ self._assigned_user_id = assigned_user_id @property def source_email_id(self): """Gets the source_email_id of this AgentConversationHandoffDto. # noqa: E501 :return: The source_email_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._source_email_id @source_email_id.setter def source_email_id(self, source_email_id): """Sets the source_email_id of this AgentConversationHandoffDto. :param source_email_id: The source_email_id of this AgentConversationHandoffDto. # noqa: E501 :type: str """ self._source_email_id = source_email_id @property def draft_id(self): """Gets the draft_id of this AgentConversationHandoffDto. # noqa: E501 :return: The draft_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._draft_id @draft_id.setter def draft_id(self, draft_id): """Sets the draft_id of this AgentConversationHandoffDto. :param draft_id: The draft_id of this AgentConversationHandoffDto. # noqa: E501 :type: str """ self._draft_id = draft_id @property def version(self): """Gets the version of this AgentConversationHandoffDto. # noqa: E501 :return: The version of this AgentConversationHandoffDto. # noqa: E501 :rtype: int """ return self._version @version.setter def version(self, version): """Sets the version of this AgentConversationHandoffDto. :param version: The version of this AgentConversationHandoffDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 self._version = version @property def created_at(self): """Gets the created_at of this AgentConversationHandoffDto. # noqa: E501 :return: The created_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this AgentConversationHandoffDto. :param created_at: The created_at of this AgentConversationHandoffDto. # noqa: E501 :type: datetime """ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501 raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 self._created_at = created_at @property def updated_at(self): """Gets the updated_at of this AgentConversationHandoffDto. # noqa: E501 :return: The updated_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): """Sets the updated_at of this AgentConversationHandoffDto. :param updated_at: The updated_at of this AgentConversationHandoffDto. # noqa: E501 :type: datetime """ if self.local_vars_configuration.client_side_validation and updated_at is None: # noqa: E501 raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 self._updated_at = updated_at @property def completed_at(self): """Gets the completed_at of this AgentConversationHandoffDto. # noqa: E501 :return: The completed_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime """ return self._completed_at @completed_at.setter def completed_at(self, completed_at): """Sets the completed_at of this AgentConversationHandoffDto. :param completed_at: The completed_at of this AgentConversationHandoffDto. # noqa: E501 :type: datetime """ self._completed_at = completed_at @property def source_sms_id(self): """Gets the source_sms_id of this AgentConversationHandoffDto. # noqa: E501 :return: The source_sms_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._source_sms_id @source_sms_id.setter def source_sms_id(self, source_sms_id): """Sets the source_sms_id of this AgentConversationHandoffDto. :param source_sms_id: The source_sms_id of this AgentConversationHandoffDto. # noqa: E501 :type: str """ self._source_sms_id = source_sms_id @property def conversation_version(self): """Gets the conversation_version of this AgentConversationHandoffDto. # noqa: E501 :return: The conversation_version of this AgentConversationHandoffDto. # noqa: E501 :rtype: int """ return self._conversation_version @conversation_version.setter def conversation_version(self, conversation_version): """Sets the conversation_version of this AgentConversationHandoffDto. :param conversation_version: The conversation_version of this AgentConversationHandoffDto. # 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, AgentConversationHandoffDto): 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, AgentConversationHandoffDto): return True return self.to_dict() != other.to_dict()Class variables
var attribute_mapvar openapi_types
Instance variables
prop assigned_user_id-
Gets the assigned_user_id of this AgentConversationHandoffDto. # noqa: E501
:return: The assigned_user_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def assigned_user_id(self): """Gets the assigned_user_id of this AgentConversationHandoffDto. # noqa: E501 :return: The assigned_user_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._assigned_user_id prop completed_at-
Gets the completed_at of this AgentConversationHandoffDto. # noqa: E501
:return: The completed_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime
Expand source code
@property def completed_at(self): """Gets the completed_at of this AgentConversationHandoffDto. # noqa: E501 :return: The completed_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime """ return self._completed_at prop conversation_id-
Gets the conversation_id of this AgentConversationHandoffDto. # noqa: E501
:return: The conversation_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def conversation_id(self): """Gets the conversation_id of this AgentConversationHandoffDto. # noqa: E501 :return: The conversation_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._conversation_id prop conversation_version-
Gets the conversation_version of this AgentConversationHandoffDto. # noqa: E501
:return: The conversation_version of this AgentConversationHandoffDto. # noqa: E501 :rtype: int
Expand source code
@property def conversation_version(self): """Gets the conversation_version of this AgentConversationHandoffDto. # noqa: E501 :return: The conversation_version of this AgentConversationHandoffDto. # noqa: E501 :rtype: int """ return self._conversation_version prop created_at-
Gets the created_at of this AgentConversationHandoffDto. # noqa: E501
:return: The created_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime
Expand source code
@property def created_at(self): """Gets the created_at of this AgentConversationHandoffDto. # noqa: E501 :return: The created_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime """ return self._created_at prop draft_id-
Gets the draft_id of this AgentConversationHandoffDto. # noqa: E501
:return: The draft_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def draft_id(self): """Gets the draft_id of this AgentConversationHandoffDto. # noqa: E501 :return: The draft_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._draft_id prop id-
Gets the id of this AgentConversationHandoffDto. # noqa: E501
:return: The id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def id(self): """Gets the id of this AgentConversationHandoffDto. # noqa: E501 :return: The id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._id prop priority-
Gets the priority of this AgentConversationHandoffDto. # noqa: E501
:return: The priority of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def priority(self): """Gets the priority of this AgentConversationHandoffDto. # noqa: E501 :return: The priority of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._priority prop reason-
Gets the reason of this AgentConversationHandoffDto. # noqa: E501
:return: The reason of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def reason(self): """Gets the reason of this AgentConversationHandoffDto. # noqa: E501 :return: The reason of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._reason prop reason_code-
Gets the reason_code of this AgentConversationHandoffDto. # noqa: E501
:return: The reason_code of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def reason_code(self): """Gets the reason_code of this AgentConversationHandoffDto. # noqa: E501 :return: The reason_code of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._reason_code prop requested_by_api_key_entity_id-
Gets the requested_by_api_key_entity_id of this AgentConversationHandoffDto. # noqa: E501
:return: The requested_by_api_key_entity_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def requested_by_api_key_entity_id(self): """Gets the requested_by_api_key_entity_id of this AgentConversationHandoffDto. # noqa: E501 :return: The requested_by_api_key_entity_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._requested_by_api_key_entity_id prop requested_by_user_id-
Gets the requested_by_user_id of this AgentConversationHandoffDto. # noqa: E501
:return: The requested_by_user_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def requested_by_user_id(self): """Gets the requested_by_user_id of this AgentConversationHandoffDto. # noqa: E501 :return: The requested_by_user_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._requested_by_user_id prop source_email_id-
Gets the source_email_id of this AgentConversationHandoffDto. # noqa: E501
:return: The source_email_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def source_email_id(self): """Gets the source_email_id of this AgentConversationHandoffDto. # noqa: E501 :return: The source_email_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._source_email_id prop source_sms_id-
Gets the source_sms_id of this AgentConversationHandoffDto. # noqa: E501
:return: The source_sms_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def source_sms_id(self): """Gets the source_sms_id of this AgentConversationHandoffDto. # noqa: E501 :return: The source_sms_id of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._source_sms_id prop status-
Gets the status of this AgentConversationHandoffDto. # noqa: E501
:return: The status of this AgentConversationHandoffDto. # noqa: E501 :rtype: str
Expand source code
@property def status(self): """Gets the status of this AgentConversationHandoffDto. # noqa: E501 :return: The status of this AgentConversationHandoffDto. # noqa: E501 :rtype: str """ return self._status prop updated_at-
Gets the updated_at of this AgentConversationHandoffDto. # noqa: E501
:return: The updated_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime
Expand source code
@property def updated_at(self): """Gets the updated_at of this AgentConversationHandoffDto. # noqa: E501 :return: The updated_at of this AgentConversationHandoffDto. # noqa: E501 :rtype: datetime """ return self._updated_at prop version-
Gets the version of this AgentConversationHandoffDto. # noqa: E501
:return: The version of this AgentConversationHandoffDto. # noqa: E501 :rtype: int
Expand source code
@property def version(self): """Gets the version of this AgentConversationHandoffDto. # noqa: E501 :return: The version of this AgentConversationHandoffDto. # noqa: E501 :rtype: int """ return self._version
Methods
def to_dict(self)-
Returns the model properties as a dict
def to_str(self)-
Returns the string representation of the model