Module mailslurp_client.models.automated_inbox_placement_execution_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 AutomatedInboxPlacementExecutionDto (id=None, schedule_id=None, connection_id=None, scheduled_for=None, trigger_source=None, status=None, inbox_placement_run_id=None, target_count=None, sent_count=None, attempt_count=None, failure_code=None, failure_message=None, started_at=None, finished_at=None, created_at=None, updated_at=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.
AutomatedInboxPlacementExecutionDto - a model defined in OpenAPI
Expand source code
class AutomatedInboxPlacementExecutionDto(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', 'schedule_id': 'str', 'connection_id': 'str', 'scheduled_for': 'datetime', 'trigger_source': 'str', 'status': 'str', 'inbox_placement_run_id': 'str', 'target_count': 'int', 'sent_count': 'int', 'attempt_count': 'int', 'failure_code': 'str', 'failure_message': 'str', 'started_at': 'datetime', 'finished_at': 'datetime', 'created_at': 'datetime', 'updated_at': 'datetime' } attribute_map = { 'id': 'id', 'schedule_id': 'scheduleId', 'connection_id': 'connectionId', 'scheduled_for': 'scheduledFor', 'trigger_source': 'triggerSource', 'status': 'status', 'inbox_placement_run_id': 'inboxPlacementRunId', 'target_count': 'targetCount', 'sent_count': 'sentCount', 'attempt_count': 'attemptCount', 'failure_code': 'failureCode', 'failure_message': 'failureMessage', 'started_at': 'startedAt', 'finished_at': 'finishedAt', 'created_at': 'createdAt', 'updated_at': 'updatedAt' } def __init__(self, id=None, schedule_id=None, connection_id=None, scheduled_for=None, trigger_source=None, status=None, inbox_placement_run_id=None, target_count=None, sent_count=None, attempt_count=None, failure_code=None, failure_message=None, started_at=None, finished_at=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """AutomatedInboxPlacementExecutionDto - 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._schedule_id = None self._connection_id = None self._scheduled_for = None self._trigger_source = None self._status = None self._inbox_placement_run_id = None self._target_count = None self._sent_count = None self._attempt_count = None self._failure_code = None self._failure_message = None self._started_at = None self._finished_at = None self._created_at = None self._updated_at = None self.discriminator = None self.id = id self.schedule_id = schedule_id self.connection_id = connection_id self.scheduled_for = scheduled_for self.trigger_source = trigger_source self.status = status self.inbox_placement_run_id = inbox_placement_run_id self.target_count = target_count self.sent_count = sent_count self.attempt_count = attempt_count self.failure_code = failure_code self.failure_message = failure_message self.started_at = started_at self.finished_at = finished_at self.created_at = created_at self.updated_at = updated_at @property def id(self): """Gets the id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this AutomatedInboxPlacementExecutionDto. :param id: The id of this AutomatedInboxPlacementExecutionDto. # 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 schedule_id(self): """Gets the schedule_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The schedule_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._schedule_id @schedule_id.setter def schedule_id(self, schedule_id): """Sets the schedule_id of this AutomatedInboxPlacementExecutionDto. :param schedule_id: The schedule_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and schedule_id is None: # noqa: E501 raise ValueError("Invalid value for `schedule_id`, must not be `None`") # noqa: E501 self._schedule_id = schedule_id @property def connection_id(self): """Gets the connection_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The connection_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._connection_id @connection_id.setter def connection_id(self, connection_id): """Sets the connection_id of this AutomatedInboxPlacementExecutionDto. :param connection_id: The connection_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and connection_id is None: # noqa: E501 raise ValueError("Invalid value for `connection_id`, must not be `None`") # noqa: E501 self._connection_id = connection_id @property def scheduled_for(self): """Gets the scheduled_for of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The scheduled_for of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._scheduled_for @scheduled_for.setter def scheduled_for(self, scheduled_for): """Sets the scheduled_for of this AutomatedInboxPlacementExecutionDto. :param scheduled_for: The scheduled_for of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: datetime """ if self.local_vars_configuration.client_side_validation and scheduled_for is None: # noqa: E501 raise ValueError("Invalid value for `scheduled_for`, must not be `None`") # noqa: E501 self._scheduled_for = scheduled_for @property def trigger_source(self): """Gets the trigger_source of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The trigger_source of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._trigger_source @trigger_source.setter def trigger_source(self, trigger_source): """Sets the trigger_source of this AutomatedInboxPlacementExecutionDto. :param trigger_source: The trigger_source of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and trigger_source is None: # noqa: E501 raise ValueError("Invalid value for `trigger_source`, must not be `None`") # noqa: E501 allowed_values = ["SCHEDULE", "API"] # noqa: E501 if self.local_vars_configuration.client_side_validation and trigger_source not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `trigger_source` ({0}), must be one of {1}" # noqa: E501 .format(trigger_source, allowed_values) ) self._trigger_source = trigger_source @property def status(self): """Gets the status of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The status of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this AutomatedInboxPlacementExecutionDto. :param status: The status of this AutomatedInboxPlacementExecutionDto. # 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 = ["PREPARING", "SENDING", "SENT_PENDING_CONFIRMATION", "COMPLETE", "PARTIAL", "FAILED", "UNCERTAIN"] # 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 inbox_placement_run_id(self): """Gets the inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._inbox_placement_run_id @inbox_placement_run_id.setter def inbox_placement_run_id(self, inbox_placement_run_id): """Sets the inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. :param inbox_placement_run_id: The inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: str """ self._inbox_placement_run_id = inbox_placement_run_id @property def target_count(self): """Gets the target_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The target_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int """ return self._target_count @target_count.setter def target_count(self, target_count): """Sets the target_count of this AutomatedInboxPlacementExecutionDto. :param target_count: The target_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and target_count is None: # noqa: E501 raise ValueError("Invalid value for `target_count`, must not be `None`") # noqa: E501 self._target_count = target_count @property def sent_count(self): """Gets the sent_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The sent_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int """ return self._sent_count @sent_count.setter def sent_count(self, sent_count): """Sets the sent_count of this AutomatedInboxPlacementExecutionDto. :param sent_count: The sent_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and sent_count is None: # noqa: E501 raise ValueError("Invalid value for `sent_count`, must not be `None`") # noqa: E501 self._sent_count = sent_count @property def attempt_count(self): """Gets the attempt_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The attempt_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int """ return self._attempt_count @attempt_count.setter def attempt_count(self, attempt_count): """Sets the attempt_count of this AutomatedInboxPlacementExecutionDto. :param attempt_count: The attempt_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: int """ if self.local_vars_configuration.client_side_validation and attempt_count is None: # noqa: E501 raise ValueError("Invalid value for `attempt_count`, must not be `None`") # noqa: E501 self._attempt_count = attempt_count @property def failure_code(self): """Gets the failure_code of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The failure_code of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._failure_code @failure_code.setter def failure_code(self, failure_code): """Sets the failure_code of this AutomatedInboxPlacementExecutionDto. :param failure_code: The failure_code of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: str """ self._failure_code = failure_code @property def failure_message(self): """Gets the failure_message of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The failure_message of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._failure_message @failure_message.setter def failure_message(self, failure_message): """Sets the failure_message of this AutomatedInboxPlacementExecutionDto. :param failure_message: The failure_message of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: str """ self._failure_message = failure_message @property def started_at(self): """Gets the started_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The started_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._started_at @started_at.setter def started_at(self, started_at): """Sets the started_at of this AutomatedInboxPlacementExecutionDto. :param started_at: The started_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: datetime """ self._started_at = started_at @property def finished_at(self): """Gets the finished_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The finished_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._finished_at @finished_at.setter def finished_at(self, finished_at): """Sets the finished_at of this AutomatedInboxPlacementExecutionDto. :param finished_at: The finished_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :type: datetime """ self._finished_at = finished_at @property def created_at(self): """Gets the created_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The created_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this AutomatedInboxPlacementExecutionDto. :param created_at: The created_at of this AutomatedInboxPlacementExecutionDto. # 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 AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The updated_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): """Sets the updated_at of this AutomatedInboxPlacementExecutionDto. :param updated_at: The updated_at of this AutomatedInboxPlacementExecutionDto. # 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 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, AutomatedInboxPlacementExecutionDto): 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, AutomatedInboxPlacementExecutionDto): return True return self.to_dict() != other.to_dict()Class variables
var attribute_mapvar openapi_types
Instance variables
prop attempt_count-
Gets the attempt_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The attempt_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int
Expand source code
@property def attempt_count(self): """Gets the attempt_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The attempt_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int """ return self._attempt_count prop connection_id-
Gets the connection_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The connection_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def connection_id(self): """Gets the connection_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The connection_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._connection_id prop created_at-
Gets the created_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The created_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime
Expand source code
@property def created_at(self): """Gets the created_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The created_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._created_at prop failure_code-
Gets the failure_code of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The failure_code of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def failure_code(self): """Gets the failure_code of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The failure_code of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._failure_code prop failure_message-
Gets the failure_message of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The failure_message of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def failure_message(self): """Gets the failure_message of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The failure_message of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._failure_message prop finished_at-
Gets the finished_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The finished_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime
Expand source code
@property def finished_at(self): """Gets the finished_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The finished_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._finished_at prop id-
Gets the id of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def id(self): """Gets the id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._id prop inbox_placement_run_id-
Gets the inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def inbox_placement_run_id(self): """Gets the inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The inbox_placement_run_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._inbox_placement_run_id prop schedule_id-
Gets the schedule_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The schedule_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def schedule_id(self): """Gets the schedule_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The schedule_id of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._schedule_id prop scheduled_for-
Gets the scheduled_for of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The scheduled_for of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime
Expand source code
@property def scheduled_for(self): """Gets the scheduled_for of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The scheduled_for of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._scheduled_for prop sent_count-
Gets the sent_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The sent_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int
Expand source code
@property def sent_count(self): """Gets the sent_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The sent_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int """ return self._sent_count prop started_at-
Gets the started_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The started_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime
Expand source code
@property def started_at(self): """Gets the started_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The started_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._started_at prop status-
Gets the status of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The status of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def status(self): """Gets the status of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The status of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._status prop target_count-
Gets the target_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The target_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int
Expand source code
@property def target_count(self): """Gets the target_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The target_count of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: int """ return self._target_count prop trigger_source-
Gets the trigger_source of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The trigger_source of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str
Expand source code
@property def trigger_source(self): """Gets the trigger_source of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The trigger_source of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: str """ return self._trigger_source prop updated_at-
Gets the updated_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501
:return: The updated_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime
Expand source code
@property def updated_at(self): """Gets the updated_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :return: The updated_at of this AutomatedInboxPlacementExecutionDto. # noqa: E501 :rtype: datetime """ return self._updated_at
Methods
def to_dict(self)-
Returns the model properties as a dict
def to_str(self)-
Returns the string representation of the model