Module mailslurp_client.models.public_device_render_test_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 PublicDeviceRenderTestDto (id=None, email_address=None, status=None, expires_at=None, target=None, preview_mode=None, source_from=None, source_subject=None, sender_domain=None, run_id=None, share_url=None, redirect_url=None, free_limit_reached=None, failure_code=None, failure_message=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.
PublicDeviceRenderTestDto - a model defined in OpenAPI
Expand source code
class PublicDeviceRenderTestDto(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', 'email_address': 'str', 'status': 'str', 'expires_at': 'datetime', 'target': 'str', 'preview_mode': 'str', 'source_from': 'str', 'source_subject': 'str', 'sender_domain': 'str', 'run_id': 'str', 'share_url': 'str', 'redirect_url': 'str', 'free_limit_reached': 'bool', 'failure_code': 'str', 'failure_message': 'str' } attribute_map = { 'id': 'id', 'email_address': 'emailAddress', 'status': 'status', 'expires_at': 'expiresAt', 'target': 'target', 'preview_mode': 'previewMode', 'source_from': 'sourceFrom', 'source_subject': 'sourceSubject', 'sender_domain': 'senderDomain', 'run_id': 'runId', 'share_url': 'shareUrl', 'redirect_url': 'redirectUrl', 'free_limit_reached': 'freeLimitReached', 'failure_code': 'failureCode', 'failure_message': 'failureMessage' } def __init__(self, id=None, email_address=None, status=None, expires_at=None, target=None, preview_mode=None, source_from=None, source_subject=None, sender_domain=None, run_id=None, share_url=None, redirect_url=None, free_limit_reached=None, failure_code=None, failure_message=None, local_vars_configuration=None): # noqa: E501 """PublicDeviceRenderTestDto - 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._email_address = None self._status = None self._expires_at = None self._target = None self._preview_mode = None self._source_from = None self._source_subject = None self._sender_domain = None self._run_id = None self._share_url = None self._redirect_url = None self._free_limit_reached = None self._failure_code = None self._failure_message = None self.discriminator = None self.id = id self.email_address = email_address self.status = status self.expires_at = expires_at self.target = target self.preview_mode = preview_mode self.source_from = source_from self.source_subject = source_subject self.sender_domain = sender_domain self.run_id = run_id self.share_url = share_url self.redirect_url = redirect_url self.free_limit_reached = free_limit_reached self.failure_code = failure_code self.failure_message = failure_message @property def id(self): """Gets the id of this PublicDeviceRenderTestDto. # noqa: E501 :return: The id of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this PublicDeviceRenderTestDto. :param id: The id of this PublicDeviceRenderTestDto. # 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 email_address(self): """Gets the email_address of this PublicDeviceRenderTestDto. # noqa: E501 :return: The email_address of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._email_address @email_address.setter def email_address(self, email_address): """Sets the email_address of this PublicDeviceRenderTestDto. :param email_address: The email_address of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and email_address is None: # noqa: E501 raise ValueError("Invalid value for `email_address`, must not be `None`") # noqa: E501 self._email_address = email_address @property def status(self): """Gets the status of this PublicDeviceRenderTestDto. # noqa: E501 :return: The status of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this PublicDeviceRenderTestDto. :param status: The status of this PublicDeviceRenderTestDto. # 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 = ["WAITING_FOR_EMAIL", "RECEIVED", "PROCESSING", "RUN_CREATED", "RATE_LIMITED", "REJECTED", "FAILED", "EXPIRED"] # 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 expires_at(self): """Gets the expires_at of this PublicDeviceRenderTestDto. # noqa: E501 :return: The expires_at of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: datetime """ return self._expires_at @expires_at.setter def expires_at(self, expires_at): """Sets the expires_at of this PublicDeviceRenderTestDto. :param expires_at: The expires_at of this PublicDeviceRenderTestDto. # 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 target(self): """Gets the target of this PublicDeviceRenderTestDto. # noqa: E501 :return: The target of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._target @target.setter def target(self, target): """Sets the target of this PublicDeviceRenderTestDto. :param target: The target of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @property def preview_mode(self): """Gets the preview_mode of this PublicDeviceRenderTestDto. # noqa: E501 :return: The preview_mode of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._preview_mode @preview_mode.setter def preview_mode(self, preview_mode): """Sets the preview_mode of this PublicDeviceRenderTestDto. :param preview_mode: The preview_mode of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and preview_mode is None: # noqa: E501 raise ValueError("Invalid value for `preview_mode`, must not be `None`") # noqa: E501 allowed_values = ["DEVICE_RENDER", "LIGHT_DARK"] # noqa: E501 if self.local_vars_configuration.client_side_validation and preview_mode not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `preview_mode` ({0}), must be one of {1}" # noqa: E501 .format(preview_mode, allowed_values) ) self._preview_mode = preview_mode @property def source_from(self): """Gets the source_from of this PublicDeviceRenderTestDto. # noqa: E501 :return: The source_from of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._source_from @source_from.setter def source_from(self, source_from): """Sets the source_from of this PublicDeviceRenderTestDto. :param source_from: The source_from of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._source_from = source_from @property def source_subject(self): """Gets the source_subject of this PublicDeviceRenderTestDto. # noqa: E501 :return: The source_subject of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._source_subject @source_subject.setter def source_subject(self, source_subject): """Sets the source_subject of this PublicDeviceRenderTestDto. :param source_subject: The source_subject of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._source_subject = source_subject @property def sender_domain(self): """Gets the sender_domain of this PublicDeviceRenderTestDto. # noqa: E501 :return: The sender_domain of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._sender_domain @sender_domain.setter def sender_domain(self, sender_domain): """Sets the sender_domain of this PublicDeviceRenderTestDto. :param sender_domain: The sender_domain of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._sender_domain = sender_domain @property def run_id(self): """Gets the run_id of this PublicDeviceRenderTestDto. # noqa: E501 :return: The run_id of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._run_id @run_id.setter def run_id(self, run_id): """Sets the run_id of this PublicDeviceRenderTestDto. :param run_id: The run_id of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._run_id = run_id @property def share_url(self): """Gets the share_url of this PublicDeviceRenderTestDto. # noqa: E501 :return: The share_url of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._share_url @share_url.setter def share_url(self, share_url): """Sets the share_url of this PublicDeviceRenderTestDto. :param share_url: The share_url of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._share_url = share_url @property def redirect_url(self): """Gets the redirect_url of this PublicDeviceRenderTestDto. # noqa: E501 :return: The redirect_url of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._redirect_url @redirect_url.setter def redirect_url(self, redirect_url): """Sets the redirect_url of this PublicDeviceRenderTestDto. :param redirect_url: The redirect_url of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._redirect_url = redirect_url @property def free_limit_reached(self): """Gets the free_limit_reached of this PublicDeviceRenderTestDto. # noqa: E501 :return: The free_limit_reached of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: bool """ return self._free_limit_reached @free_limit_reached.setter def free_limit_reached(self, free_limit_reached): """Sets the free_limit_reached of this PublicDeviceRenderTestDto. :param free_limit_reached: The free_limit_reached of this PublicDeviceRenderTestDto. # noqa: E501 :type: bool """ if self.local_vars_configuration.client_side_validation and free_limit_reached is None: # noqa: E501 raise ValueError("Invalid value for `free_limit_reached`, must not be `None`") # noqa: E501 self._free_limit_reached = free_limit_reached @property def failure_code(self): """Gets the failure_code of this PublicDeviceRenderTestDto. # noqa: E501 :return: The failure_code of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._failure_code @failure_code.setter def failure_code(self, failure_code): """Sets the failure_code of this PublicDeviceRenderTestDto. :param failure_code: The failure_code of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._failure_code = failure_code @property def failure_message(self): """Gets the failure_message of this PublicDeviceRenderTestDto. # noqa: E501 :return: The failure_message of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._failure_message @failure_message.setter def failure_message(self, failure_message): """Sets the failure_message of this PublicDeviceRenderTestDto. :param failure_message: The failure_message of this PublicDeviceRenderTestDto. # noqa: E501 :type: str """ self._failure_message = failure_message 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, PublicDeviceRenderTestDto): 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, PublicDeviceRenderTestDto): return True return self.to_dict() != other.to_dict()Class variables
var attribute_mapvar openapi_types
Instance variables
prop email_address-
Gets the email_address of this PublicDeviceRenderTestDto. # noqa: E501
:return: The email_address of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def email_address(self): """Gets the email_address of this PublicDeviceRenderTestDto. # noqa: E501 :return: The email_address of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._email_address prop expires_at-
Gets the expires_at of this PublicDeviceRenderTestDto. # noqa: E501
:return: The expires_at of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: datetime
Expand source code
@property def expires_at(self): """Gets the expires_at of this PublicDeviceRenderTestDto. # noqa: E501 :return: The expires_at of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: datetime """ return self._expires_at prop failure_code-
Gets the failure_code of this PublicDeviceRenderTestDto. # noqa: E501
:return: The failure_code of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def failure_code(self): """Gets the failure_code of this PublicDeviceRenderTestDto. # noqa: E501 :return: The failure_code of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._failure_code prop failure_message-
Gets the failure_message of this PublicDeviceRenderTestDto. # noqa: E501
:return: The failure_message of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def failure_message(self): """Gets the failure_message of this PublicDeviceRenderTestDto. # noqa: E501 :return: The failure_message of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._failure_message prop free_limit_reached-
Gets the free_limit_reached of this PublicDeviceRenderTestDto. # noqa: E501
:return: The free_limit_reached of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: bool
Expand source code
@property def free_limit_reached(self): """Gets the free_limit_reached of this PublicDeviceRenderTestDto. # noqa: E501 :return: The free_limit_reached of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: bool """ return self._free_limit_reached prop id-
Gets the id of this PublicDeviceRenderTestDto. # noqa: E501
:return: The id of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def id(self): """Gets the id of this PublicDeviceRenderTestDto. # noqa: E501 :return: The id of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._id prop preview_mode-
Gets the preview_mode of this PublicDeviceRenderTestDto. # noqa: E501
:return: The preview_mode of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def preview_mode(self): """Gets the preview_mode of this PublicDeviceRenderTestDto. # noqa: E501 :return: The preview_mode of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._preview_mode prop redirect_url-
Gets the redirect_url of this PublicDeviceRenderTestDto. # noqa: E501
:return: The redirect_url of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def redirect_url(self): """Gets the redirect_url of this PublicDeviceRenderTestDto. # noqa: E501 :return: The redirect_url of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._redirect_url prop run_id-
Gets the run_id of this PublicDeviceRenderTestDto. # noqa: E501
:return: The run_id of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def run_id(self): """Gets the run_id of this PublicDeviceRenderTestDto. # noqa: E501 :return: The run_id of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._run_id prop sender_domain-
Gets the sender_domain of this PublicDeviceRenderTestDto. # noqa: E501
:return: The sender_domain of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def sender_domain(self): """Gets the sender_domain of this PublicDeviceRenderTestDto. # noqa: E501 :return: The sender_domain of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._sender_domain -
Gets the share_url of this PublicDeviceRenderTestDto. # noqa: E501
:return: The share_url of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def share_url(self): """Gets the share_url of this PublicDeviceRenderTestDto. # noqa: E501 :return: The share_url of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._share_url prop source_from-
Gets the source_from of this PublicDeviceRenderTestDto. # noqa: E501
:return: The source_from of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def source_from(self): """Gets the source_from of this PublicDeviceRenderTestDto. # noqa: E501 :return: The source_from of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._source_from prop source_subject-
Gets the source_subject of this PublicDeviceRenderTestDto. # noqa: E501
:return: The source_subject of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def source_subject(self): """Gets the source_subject of this PublicDeviceRenderTestDto. # noqa: E501 :return: The source_subject of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._source_subject prop status-
Gets the status of this PublicDeviceRenderTestDto. # noqa: E501
:return: The status of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def status(self): """Gets the status of this PublicDeviceRenderTestDto. # noqa: E501 :return: The status of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._status prop target-
Gets the target of this PublicDeviceRenderTestDto. # noqa: E501
:return: The target of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str
Expand source code
@property def target(self): """Gets the target of this PublicDeviceRenderTestDto. # noqa: E501 :return: The target of this PublicDeviceRenderTestDto. # noqa: E501 :rtype: str """ return self._target
Methods
def to_dict(self)-
Returns the model properties as a dict
def to_str(self)-
Returns the string representation of the model