Module mailslurp_client.models.agent_conversation_note_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 AgentConversationNoteDto (id=None, conversation_id=None, actor_type=None, actor_api_key_entity_id=None, actor_user_id=None, body=None, source_email_id=None, draft_id=None, handoff_id=None, created_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.
AgentConversationNoteDto - a model defined in OpenAPI
Expand source code
class AgentConversationNoteDto(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', 'actor_type': 'str', 'actor_api_key_entity_id': 'str', 'actor_user_id': 'str', 'body': 'str', 'source_email_id': 'str', 'draft_id': 'str', 'handoff_id': 'str', 'created_at': 'datetime', 'source_sms_id': 'str', 'conversation_version': 'int' } attribute_map = { 'id': 'id', 'conversation_id': 'conversationId', 'actor_type': 'actorType', 'actor_api_key_entity_id': 'actorApiKeyEntityId', 'actor_user_id': 'actorUserId', 'body': 'body', 'source_email_id': 'sourceEmailId', 'draft_id': 'draftId', 'handoff_id': 'handoffId', 'created_at': 'createdAt', 'source_sms_id': 'sourceSmsId', 'conversation_version': 'conversationVersion' } def __init__(self, id=None, conversation_id=None, actor_type=None, actor_api_key_entity_id=None, actor_user_id=None, body=None, source_email_id=None, draft_id=None, handoff_id=None, created_at=None, source_sms_id=None, conversation_version=None, local_vars_configuration=None): # noqa: E501 """AgentConversationNoteDto - 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._actor_type = None self._actor_api_key_entity_id = None self._actor_user_id = None self._body = None self._source_email_id = None self._draft_id = None self._handoff_id = None self._created_at = None self._source_sms_id = None self._conversation_version = None self.discriminator = None self.id = id self.conversation_id = conversation_id self.actor_type = actor_type self.actor_api_key_entity_id = actor_api_key_entity_id self.actor_user_id = actor_user_id self.body = body self.source_email_id = source_email_id self.draft_id = draft_id self.handoff_id = handoff_id self.created_at = created_at self.source_sms_id = source_sms_id self.conversation_version = conversation_version @property def id(self): """Gets the id of this AgentConversationNoteDto. # noqa: E501 :return: The id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this AgentConversationNoteDto. :param id: The id of this AgentConversationNoteDto. # 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 AgentConversationNoteDto. # noqa: E501 :return: The conversation_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._conversation_id @conversation_id.setter def conversation_id(self, conversation_id): """Sets the conversation_id of this AgentConversationNoteDto. :param conversation_id: The conversation_id of this AgentConversationNoteDto. # 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 actor_type(self): """Gets the actor_type of this AgentConversationNoteDto. # noqa: E501 :return: The actor_type of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._actor_type @actor_type.setter def actor_type(self, actor_type): """Sets the actor_type of this AgentConversationNoteDto. :param actor_type: The actor_type of this AgentConversationNoteDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and actor_type is None: # noqa: E501 raise ValueError("Invalid value for `actor_type`, must not be `None`") # noqa: E501 allowed_values = ["AGENT", "OPERATOR", "SYSTEM"] # noqa: E501 if self.local_vars_configuration.client_side_validation and actor_type not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `actor_type` ({0}), must be one of {1}" # noqa: E501 .format(actor_type, allowed_values) ) self._actor_type = actor_type @property def actor_api_key_entity_id(self): """Gets the actor_api_key_entity_id of this AgentConversationNoteDto. # noqa: E501 :return: The actor_api_key_entity_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._actor_api_key_entity_id @actor_api_key_entity_id.setter def actor_api_key_entity_id(self, actor_api_key_entity_id): """Sets the actor_api_key_entity_id of this AgentConversationNoteDto. :param actor_api_key_entity_id: The actor_api_key_entity_id of this AgentConversationNoteDto. # noqa: E501 :type: str """ self._actor_api_key_entity_id = actor_api_key_entity_id @property def actor_user_id(self): """Gets the actor_user_id of this AgentConversationNoteDto. # noqa: E501 :return: The actor_user_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._actor_user_id @actor_user_id.setter def actor_user_id(self, actor_user_id): """Sets the actor_user_id of this AgentConversationNoteDto. :param actor_user_id: The actor_user_id of this AgentConversationNoteDto. # noqa: E501 :type: str """ self._actor_user_id = actor_user_id @property def body(self): """Gets the body of this AgentConversationNoteDto. # noqa: E501 :return: The body of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._body @body.setter def body(self, body): """Sets the body of this AgentConversationNoteDto. :param body: The body of this AgentConversationNoteDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and body is None: # noqa: E501 raise ValueError("Invalid value for `body`, must not be `None`") # noqa: E501 self._body = body @property def source_email_id(self): """Gets the source_email_id of this AgentConversationNoteDto. # noqa: E501 :return: The source_email_id of this AgentConversationNoteDto. # 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 AgentConversationNoteDto. :param source_email_id: The source_email_id of this AgentConversationNoteDto. # noqa: E501 :type: str """ self._source_email_id = source_email_id @property def draft_id(self): """Gets the draft_id of this AgentConversationNoteDto. # noqa: E501 :return: The draft_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._draft_id @draft_id.setter def draft_id(self, draft_id): """Sets the draft_id of this AgentConversationNoteDto. :param draft_id: The draft_id of this AgentConversationNoteDto. # noqa: E501 :type: str """ self._draft_id = draft_id @property def handoff_id(self): """Gets the handoff_id of this AgentConversationNoteDto. # noqa: E501 :return: The handoff_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._handoff_id @handoff_id.setter def handoff_id(self, handoff_id): """Sets the handoff_id of this AgentConversationNoteDto. :param handoff_id: The handoff_id of this AgentConversationNoteDto. # noqa: E501 :type: str """ self._handoff_id = handoff_id @property def created_at(self): """Gets the created_at of this AgentConversationNoteDto. # noqa: E501 :return: The created_at of this AgentConversationNoteDto. # noqa: E501 :rtype: datetime """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this AgentConversationNoteDto. :param created_at: The created_at of this AgentConversationNoteDto. # 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 source_sms_id(self): """Gets the source_sms_id of this AgentConversationNoteDto. # noqa: E501 :return: The source_sms_id of this AgentConversationNoteDto. # 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 AgentConversationNoteDto. :param source_sms_id: The source_sms_id of this AgentConversationNoteDto. # noqa: E501 :type: str """ self._source_sms_id = source_sms_id @property def conversation_version(self): """Gets the conversation_version of this AgentConversationNoteDto. # noqa: E501 :return: The conversation_version of this AgentConversationNoteDto. # noqa: E501 :rtype: int """ return self._conversation_version @conversation_version.setter def conversation_version(self, conversation_version): """Sets the conversation_version of this AgentConversationNoteDto. :param conversation_version: The conversation_version of this AgentConversationNoteDto. # 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, AgentConversationNoteDto): 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, AgentConversationNoteDto): return True return self.to_dict() != other.to_dict()Class variables
var attribute_mapvar openapi_types
Instance variables
prop actor_api_key_entity_id-
Gets the actor_api_key_entity_id of this AgentConversationNoteDto. # noqa: E501
:return: The actor_api_key_entity_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def actor_api_key_entity_id(self): """Gets the actor_api_key_entity_id of this AgentConversationNoteDto. # noqa: E501 :return: The actor_api_key_entity_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._actor_api_key_entity_id prop actor_type-
Gets the actor_type of this AgentConversationNoteDto. # noqa: E501
:return: The actor_type of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def actor_type(self): """Gets the actor_type of this AgentConversationNoteDto. # noqa: E501 :return: The actor_type of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._actor_type prop actor_user_id-
Gets the actor_user_id of this AgentConversationNoteDto. # noqa: E501
:return: The actor_user_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def actor_user_id(self): """Gets the actor_user_id of this AgentConversationNoteDto. # noqa: E501 :return: The actor_user_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._actor_user_id prop body-
Gets the body of this AgentConversationNoteDto. # noqa: E501
:return: The body of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def body(self): """Gets the body of this AgentConversationNoteDto. # noqa: E501 :return: The body of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._body prop conversation_id-
Gets the conversation_id of this AgentConversationNoteDto. # noqa: E501
:return: The conversation_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def conversation_id(self): """Gets the conversation_id of this AgentConversationNoteDto. # noqa: E501 :return: The conversation_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._conversation_id prop conversation_version-
Gets the conversation_version of this AgentConversationNoteDto. # noqa: E501
:return: The conversation_version of this AgentConversationNoteDto. # noqa: E501 :rtype: int
Expand source code
@property def conversation_version(self): """Gets the conversation_version of this AgentConversationNoteDto. # noqa: E501 :return: The conversation_version of this AgentConversationNoteDto. # noqa: E501 :rtype: int """ return self._conversation_version prop created_at-
Gets the created_at of this AgentConversationNoteDto. # noqa: E501
:return: The created_at of this AgentConversationNoteDto. # noqa: E501 :rtype: datetime
Expand source code
@property def created_at(self): """Gets the created_at of this AgentConversationNoteDto. # noqa: E501 :return: The created_at of this AgentConversationNoteDto. # noqa: E501 :rtype: datetime """ return self._created_at prop draft_id-
Gets the draft_id of this AgentConversationNoteDto. # noqa: E501
:return: The draft_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def draft_id(self): """Gets the draft_id of this AgentConversationNoteDto. # noqa: E501 :return: The draft_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._draft_id prop handoff_id-
Gets the handoff_id of this AgentConversationNoteDto. # noqa: E501
:return: The handoff_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def handoff_id(self): """Gets the handoff_id of this AgentConversationNoteDto. # noqa: E501 :return: The handoff_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._handoff_id prop id-
Gets the id of this AgentConversationNoteDto. # noqa: E501
:return: The id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def id(self): """Gets the id of this AgentConversationNoteDto. # noqa: E501 :return: The id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._id prop source_email_id-
Gets the source_email_id of this AgentConversationNoteDto. # noqa: E501
:return: The source_email_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def source_email_id(self): """Gets the source_email_id of this AgentConversationNoteDto. # noqa: E501 :return: The source_email_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._source_email_id prop source_sms_id-
Gets the source_sms_id of this AgentConversationNoteDto. # noqa: E501
:return: The source_sms_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str
Expand source code
@property def source_sms_id(self): """Gets the source_sms_id of this AgentConversationNoteDto. # noqa: E501 :return: The source_sms_id of this AgentConversationNoteDto. # noqa: E501 :rtype: str """ return self._source_sms_id
Methods
def to_dict(self)-
Returns the model properties as a dict
def to_str(self)-
Returns the string representation of the model