Module mailslurp_client.models.email_domain_reputation_result
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 EmailDomainReputationResult (input=None, normalized_target=None, email_address=None, domain=None, ip_address=None, mx_host=None, status=None, listed=None, blacklist=None, insights=None, warnings=None, errors=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.
EmailDomainReputationResult - a model defined in OpenAPI
Expand source code
class EmailDomainReputationResult(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 = { 'input': 'str', 'normalized_target': 'str', 'email_address': 'str', 'domain': 'str', 'ip_address': 'str', 'mx_host': 'str', 'status': 'str', 'listed': 'bool', 'blacklist': 'CheckEmailBlacklistResults', 'insights': 'list[str]', 'warnings': 'list[str]', 'errors': 'list[str]' } attribute_map = { 'input': 'input', 'normalized_target': 'normalizedTarget', 'email_address': 'emailAddress', 'domain': 'domain', 'ip_address': 'ipAddress', 'mx_host': 'mxHost', 'status': 'status', 'listed': 'listed', 'blacklist': 'blacklist', 'insights': 'insights', 'warnings': 'warnings', 'errors': 'errors' } def __init__(self, input=None, normalized_target=None, email_address=None, domain=None, ip_address=None, mx_host=None, status=None, listed=None, blacklist=None, insights=None, warnings=None, errors=None, local_vars_configuration=None): # noqa: E501 """EmailDomainReputationResult - 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._input = None self._normalized_target = None self._email_address = None self._domain = None self._ip_address = None self._mx_host = None self._status = None self._listed = None self._blacklist = None self._insights = None self._warnings = None self._errors = None self.discriminator = None self.input = input self.normalized_target = normalized_target self.email_address = email_address self.domain = domain self.ip_address = ip_address self.mx_host = mx_host self.status = status self.listed = listed self.blacklist = blacklist self.insights = insights self.warnings = warnings self.errors = errors @property def input(self): """Gets the input of this EmailDomainReputationResult. # noqa: E501 :return: The input of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._input @input.setter def input(self, input): """Sets the input of this EmailDomainReputationResult. :param input: The input of this EmailDomainReputationResult. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and input is None: # noqa: E501 raise ValueError("Invalid value for `input`, must not be `None`") # noqa: E501 self._input = input @property def normalized_target(self): """Gets the normalized_target of this EmailDomainReputationResult. # noqa: E501 :return: The normalized_target of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._normalized_target @normalized_target.setter def normalized_target(self, normalized_target): """Sets the normalized_target of this EmailDomainReputationResult. :param normalized_target: The normalized_target of this EmailDomainReputationResult. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and normalized_target is None: # noqa: E501 raise ValueError("Invalid value for `normalized_target`, must not be `None`") # noqa: E501 self._normalized_target = normalized_target @property def email_address(self): """Gets the email_address of this EmailDomainReputationResult. # noqa: E501 :return: The email_address of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._email_address @email_address.setter def email_address(self, email_address): """Sets the email_address of this EmailDomainReputationResult. :param email_address: The email_address of this EmailDomainReputationResult. # noqa: E501 :type: str """ self._email_address = email_address @property def domain(self): """Gets the domain of this EmailDomainReputationResult. # noqa: E501 :return: The domain of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._domain @domain.setter def domain(self, domain): """Sets the domain of this EmailDomainReputationResult. :param domain: The domain of this EmailDomainReputationResult. # noqa: E501 :type: str """ self._domain = domain @property def ip_address(self): """Gets the ip_address of this EmailDomainReputationResult. # noqa: E501 :return: The ip_address of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._ip_address @ip_address.setter def ip_address(self, ip_address): """Sets the ip_address of this EmailDomainReputationResult. :param ip_address: The ip_address of this EmailDomainReputationResult. # noqa: E501 :type: str """ self._ip_address = ip_address @property def mx_host(self): """Gets the mx_host of this EmailDomainReputationResult. # noqa: E501 :return: The mx_host of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._mx_host @mx_host.setter def mx_host(self, mx_host): """Sets the mx_host of this EmailDomainReputationResult. :param mx_host: The mx_host of this EmailDomainReputationResult. # noqa: E501 :type: str """ self._mx_host = mx_host @property def status(self): """Gets the status of this EmailDomainReputationResult. # noqa: E501 :return: The status of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this EmailDomainReputationResult. :param status: The status of this EmailDomainReputationResult. # 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 = ["HEALTHY", "DEGRADED", "CRITICAL", "FAILED"] # 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 listed(self): """Gets the listed of this EmailDomainReputationResult. # noqa: E501 :return: The listed of this EmailDomainReputationResult. # noqa: E501 :rtype: bool """ return self._listed @listed.setter def listed(self, listed): """Sets the listed of this EmailDomainReputationResult. :param listed: The listed of this EmailDomainReputationResult. # noqa: E501 :type: bool """ if self.local_vars_configuration.client_side_validation and listed is None: # noqa: E501 raise ValueError("Invalid value for `listed`, must not be `None`") # noqa: E501 self._listed = listed @property def blacklist(self): """Gets the blacklist of this EmailDomainReputationResult. # noqa: E501 :return: The blacklist of this EmailDomainReputationResult. # noqa: E501 :rtype: CheckEmailBlacklistResults """ return self._blacklist @blacklist.setter def blacklist(self, blacklist): """Sets the blacklist of this EmailDomainReputationResult. :param blacklist: The blacklist of this EmailDomainReputationResult. # noqa: E501 :type: CheckEmailBlacklistResults """ self._blacklist = blacklist @property def insights(self): """Gets the insights of this EmailDomainReputationResult. # noqa: E501 :return: The insights of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str] """ return self._insights @insights.setter def insights(self, insights): """Sets the insights of this EmailDomainReputationResult. :param insights: The insights of this EmailDomainReputationResult. # noqa: E501 :type: list[str] """ if self.local_vars_configuration.client_side_validation and insights is None: # noqa: E501 raise ValueError("Invalid value for `insights`, must not be `None`") # noqa: E501 self._insights = insights @property def warnings(self): """Gets the warnings of this EmailDomainReputationResult. # noqa: E501 :return: The warnings of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str] """ return self._warnings @warnings.setter def warnings(self, warnings): """Sets the warnings of this EmailDomainReputationResult. :param warnings: The warnings of this EmailDomainReputationResult. # noqa: E501 :type: list[str] """ if self.local_vars_configuration.client_side_validation and warnings is None: # noqa: E501 raise ValueError("Invalid value for `warnings`, must not be `None`") # noqa: E501 self._warnings = warnings @property def errors(self): """Gets the errors of this EmailDomainReputationResult. # noqa: E501 :return: The errors of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str] """ return self._errors @errors.setter def errors(self, errors): """Sets the errors of this EmailDomainReputationResult. :param errors: The errors of this EmailDomainReputationResult. # noqa: E501 :type: list[str] """ if self.local_vars_configuration.client_side_validation and errors is None: # noqa: E501 raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 self._errors = errors 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, EmailDomainReputationResult): 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, EmailDomainReputationResult): return True return self.to_dict() != other.to_dict()Class variables
var attribute_mapvar openapi_types
Instance variables
prop blacklist-
Gets the blacklist of this EmailDomainReputationResult. # noqa: E501
:return: The blacklist of this EmailDomainReputationResult. # noqa: E501 :rtype: CheckEmailBlacklistResults
Expand source code
@property def blacklist(self): """Gets the blacklist of this EmailDomainReputationResult. # noqa: E501 :return: The blacklist of this EmailDomainReputationResult. # noqa: E501 :rtype: CheckEmailBlacklistResults """ return self._blacklist prop domain-
Gets the domain of this EmailDomainReputationResult. # noqa: E501
:return: The domain of this EmailDomainReputationResult. # noqa: E501 :rtype: str
Expand source code
@property def domain(self): """Gets the domain of this EmailDomainReputationResult. # noqa: E501 :return: The domain of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._domain prop email_address-
Gets the email_address of this EmailDomainReputationResult. # noqa: E501
:return: The email_address of this EmailDomainReputationResult. # noqa: E501 :rtype: str
Expand source code
@property def email_address(self): """Gets the email_address of this EmailDomainReputationResult. # noqa: E501 :return: The email_address of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._email_address prop errors-
Gets the errors of this EmailDomainReputationResult. # noqa: E501
:return: The errors of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str]
Expand source code
@property def errors(self): """Gets the errors of this EmailDomainReputationResult. # noqa: E501 :return: The errors of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str] """ return self._errors prop input-
Gets the input of this EmailDomainReputationResult. # noqa: E501
:return: The input of this EmailDomainReputationResult. # noqa: E501 :rtype: str
Expand source code
@property def input(self): """Gets the input of this EmailDomainReputationResult. # noqa: E501 :return: The input of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._input prop insights-
Gets the insights of this EmailDomainReputationResult. # noqa: E501
:return: The insights of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str]
Expand source code
@property def insights(self): """Gets the insights of this EmailDomainReputationResult. # noqa: E501 :return: The insights of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str] """ return self._insights prop ip_address-
Gets the ip_address of this EmailDomainReputationResult. # noqa: E501
:return: The ip_address of this EmailDomainReputationResult. # noqa: E501 :rtype: str
Expand source code
@property def ip_address(self): """Gets the ip_address of this EmailDomainReputationResult. # noqa: E501 :return: The ip_address of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._ip_address prop listed-
Gets the listed of this EmailDomainReputationResult. # noqa: E501
:return: The listed of this EmailDomainReputationResult. # noqa: E501 :rtype: bool
Expand source code
@property def listed(self): """Gets the listed of this EmailDomainReputationResult. # noqa: E501 :return: The listed of this EmailDomainReputationResult. # noqa: E501 :rtype: bool """ return self._listed prop mx_host-
Gets the mx_host of this EmailDomainReputationResult. # noqa: E501
:return: The mx_host of this EmailDomainReputationResult. # noqa: E501 :rtype: str
Expand source code
@property def mx_host(self): """Gets the mx_host of this EmailDomainReputationResult. # noqa: E501 :return: The mx_host of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._mx_host prop normalized_target-
Gets the normalized_target of this EmailDomainReputationResult. # noqa: E501
:return: The normalized_target of this EmailDomainReputationResult. # noqa: E501 :rtype: str
Expand source code
@property def normalized_target(self): """Gets the normalized_target of this EmailDomainReputationResult. # noqa: E501 :return: The normalized_target of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._normalized_target prop status-
Gets the status of this EmailDomainReputationResult. # noqa: E501
:return: The status of this EmailDomainReputationResult. # noqa: E501 :rtype: str
Expand source code
@property def status(self): """Gets the status of this EmailDomainReputationResult. # noqa: E501 :return: The status of this EmailDomainReputationResult. # noqa: E501 :rtype: str """ return self._status prop warnings-
Gets the warnings of this EmailDomainReputationResult. # noqa: E501
:return: The warnings of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str]
Expand source code
@property def warnings(self): """Gets the warnings of this EmailDomainReputationResult. # noqa: E501 :return: The warnings of this EmailDomainReputationResult. # noqa: E501 :rtype: list[str] """ return self._warnings
Methods
def to_dict(self)-
Returns the model properties as a dict
def to_str(self)-
Returns the string representation of the model