text: # coding: utf-8
  
  """
      Kubernetes
  
      No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501
  
      The version of the OpenAPI document: v1.20.7
      Generated by: https://openapi-generator.tech
  """
  
  
  import pprint
  import re  # noqa: F401
  
  import six
  
  from kubernetes.client.configuration import Configuration
  
  
  class ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs(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 = {
          'auth_identity': 'str',
          'auth_password': 'ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecAuthPassword',
          'auth_secret': 'ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecAuthSecret',
          'auth_username': 'str',
          '_from': 'str',
          'headers': 'list[ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecHeaders]',
          'hello': 'str',
          'html': 'str',
          'require_tls': 'bool',
          'send_resolved': 'bool',
          'smarthost': 'str',
          'text': 'str',
          'tls_config': 'ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecTlsConfig',
          'to': 'str'
      }
  
      attribute_map = {
          'auth_identity': 'authIdentity',
          'auth_password': 'authPassword',
          'auth_secret': 'authSecret',
          'auth_username': 'authUsername',
          '_from': 'from',
          'headers': 'headers',
          'hello': 'hello',
          'html': 'html',
          'require_tls': 'requireTLS',
          'send_resolved': 'sendResolved',
          'smarthost': 'smarthost',
          'text': 'text',
          'tls_config': 'tlsConfig',
          'to': 'to'
      }
  
      def __init__(self, auth_identity=None, auth_password=None, auth_secret=None, auth_username=None, _from=None, headers=None, hello=None, html=None, require_tls=None, send_resolved=None, smarthost=None, text=None, tls_config=None, to=None, local_vars_configuration=None):  # noqa: E501
          """ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs - 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._auth_identity = None
          self._auth_password = None
          self._auth_secret = None
          self._auth_username = None
          self.__from = None
          self._headers = None
          self._hello = None
          self._html = None
          self._require_tls = None
          self._send_resolved = None
          self._smarthost = None
          self._text = None
          self._tls_config = None
          self._to = None
          self.discriminator = None
  
          if auth_identity is not None:
              self.auth_identity = auth_identity
          if auth_password is not None:
              self.auth_password = auth_password
          if auth_secret is not None:
              self.auth_secret = auth_secret
          if auth_username is not None:
              self.auth_username = auth_username
          if _from is not None:
              self._from = _from
          if headers is not None:
              self.headers = headers
          if hello is not None:
              self.hello = hello
          if html is not None:
              self.html = html
          if require_tls is not None:
              self.require_tls = require_tls
          if send_resolved is not None:
              self.send_resolved = send_resolved
          if smarthost is not None:
              self.smarthost = smarthost
          if text is not None:
              self.text = text
          if tls_config is not None:
              self.tls_config = tls_config
          if to is not None:
              self.to = to
  
      @property
      def auth_identity(self):
          """Gets the auth_identity of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The identity to use for authentication.  # noqa: E501
  
          :return: The auth_identity of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self._auth_identity
  
      @auth_identity.setter
      def auth_identity(self, auth_identity):
          """Sets the auth_identity of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The identity to use for authentication.  # noqa: E501
  
          :param auth_identity: The auth_identity of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self._auth_identity = auth_identity
  
      @property
      def auth_password(self):
          """Gets the auth_password of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
  
          :return: The auth_password of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecAuthPassword
          """
          return self._auth_password
  
      @auth_password.setter
      def auth_password(self, auth_password):
          """Sets the auth_password of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
  
          :param auth_password: The auth_password of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecAuthPassword
          """
  
          self._auth_password = auth_password
  
      @property
      def auth_secret(self):
          """Gets the auth_secret of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
  
          :return: The auth_secret of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecAuthSecret
          """
          return self._auth_secret
  
      @auth_secret.setter
      def auth_secret(self, auth_secret):
          """Sets the auth_secret of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
  
          :param auth_secret: The auth_secret of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecAuthSecret
          """
  
          self._auth_secret = auth_secret
  
      @property
      def auth_username(self):
          """Gets the auth_username of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The username to use for authentication.  # noqa: E501
  
          :return: The auth_username of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self._auth_username
  
      @auth_username.setter
      def auth_username(self, auth_username):
          """Sets the auth_username of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The username to use for authentication.  # noqa: E501
  
          :param auth_username: The auth_username of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self._auth_username = auth_username
  
      @property
      def _from(self):
          """Gets the _from of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The sender address.  # noqa: E501
  
          :return: The _from of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self.__from
  
      @_from.setter
      def _from(self, _from):
          """Sets the _from of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The sender address.  # noqa: E501
  
          :param _from: The _from of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self.__from = _from
  
      @property
      def headers(self):
          """Gets the headers of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          Further headers email header key/value pairs. Overrides any headers previously set by the notification implementation.  # noqa: E501
  
          :return: The headers of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: list[ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecHeaders]
          """
          return self._headers
  
      @headers.setter
      def headers(self, headers):
          """Sets the headers of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          Further headers email header key/value pairs. Overrides any headers previously set by the notification implementation.  # noqa: E501
  
          :param headers: The headers of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: list[ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecHeaders]
          """
  
          self._headers = headers
  
      @property
      def hello(self):
          """Gets the hello of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The hostname to identify to the SMTP server.  # noqa: E501
  
          :return: The hello of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self._hello
  
      @hello.setter
      def hello(self, hello):
          """Sets the hello of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The hostname to identify to the SMTP server.  # noqa: E501
  
          :param hello: The hello of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self._hello = hello
  
      @property
      def html(self):
          """Gets the html of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The HTML body of the email notification.  # noqa: E501
  
          :return: The html of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self._html
  
      @html.setter
      def html(self, html):
          """Sets the html of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The HTML body of the email notification.  # noqa: E501
  
          :param html: The html of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self._html = html
  
      @property
      def require_tls(self):
          """Gets the require_tls of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The SMTP TLS requirement. Note that Go does not support unencrypted connections to remote SMTP endpoints.  # noqa: E501
  
          :return: The require_tls of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: bool
          """
          return self._require_tls
  
      @require_tls.setter
      def require_tls(self, require_tls):
          """Sets the require_tls of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The SMTP TLS requirement. Note that Go does not support unencrypted connections to remote SMTP endpoints.  # noqa: E501
  
          :param require_tls: The require_tls of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: bool
          """
  
          self._require_tls = require_tls
  
      @property
      def send_resolved(self):
          """Gets the send_resolved of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          Whether or not to notify about resolved alerts.  # noqa: E501
  
          :return: The send_resolved of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: bool
          """
          return self._send_resolved
  
      @send_resolved.setter
      def send_resolved(self, send_resolved):
          """Sets the send_resolved of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          Whether or not to notify about resolved alerts.  # noqa: E501
  
          :param send_resolved: The send_resolved of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: bool
          """
  
          self._send_resolved = send_resolved
  
      @property
      def smarthost(self):
          """Gets the smarthost of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The SMTP host through which emails are sent.  # noqa: E501
  
          :return: The smarthost of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self._smarthost
  
      @smarthost.setter
      def smarthost(self, smarthost):
          """Sets the smarthost of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The SMTP host through which emails are sent.  # noqa: E501
  
          :param smarthost: The smarthost of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self._smarthost = smarthost
  
      @property
      def text(self):
          """Gets the text of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The text body of the email notification.  # noqa: E501
  
          :return: The text of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self._text
  
      @text.setter
      def text(self, text):
          """Sets the text of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The text body of the email notification.  # noqa: E501
  
          :param text: The text of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self._text = text
  
      @property
      def tls_config(self):
          """Gets the tls_config of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
  
          :return: The tls_config of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecTlsConfig
          """
          return self._tls_config
  
      @tls_config.setter
      def tls_config(self, tls_config):
          """Sets the tls_config of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
  
          :param tls_config: The tls_config of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecTlsConfig
          """
  
          self._tls_config = tls_config
  
      @property
      def to(self):
          """Gets the to of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
  
          The email address to send notifications to.  # noqa: E501
  
          :return: The to of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :rtype: str
          """
          return self._to
  
      @to.setter
      def to(self, to):
          """Sets the to of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.
  
          The email address to send notifications to.  # noqa: E501
  
          :param to: The to of this ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs.  # noqa: E501
          :type: str
          """
  
          self._to = to
  
      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, ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs):
              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, ComCoreosMonitoringV1alpha1AlertmanagerConfigSpecEmailConfigs):
              return True
  
          return self.to_dict() != other.to_dict()
  