text: # coding: utf-8
  
  import pprint
  import re
  
  import six
  
  
  
  
  
  class ScopedTokenUser:
  
  
      """
      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.
      """
  
      sensitive_list = []
  
      openapi_types = {
          'domain': 'TokenDomainResult',
          'os_federation': 'TokenUserOsfederation',
          'id': 'str',
          'name': 'str',
          'password_expires_at': 'str'
      }
  
      attribute_map = {
          'domain': 'domain',
          'os_federation': 'OS-FEDERATION',
          'id': 'id',
          'name': 'name',
          'password_expires_at': 'password_expires_at'
      }
  
      def __init__(self, domain=None, os_federation=None, id=None, name=None, password_expires_at=None):
          """ScopedTokenUser - a model defined in huaweicloud sdk"""
          
          
  
          self._domain = None
          self._os_federation = None
          self._id = None
          self._name = None
          self._password_expires_at = None
          self.discriminator = None
  
          self.domain = domain
          self.os_federation = os_federation
          self.id = id
          self.name = name
          self.password_expires_at = password_expires_at
  
      @property
      def domain(self):
          """Gets the domain of this ScopedTokenUser.
  
  
          :return: The domain of this ScopedTokenUser.
          :rtype: TokenDomainResult
          """
          return self._domain
  
      @domain.setter
      def domain(self, domain):
          """Sets the domain of this ScopedTokenUser.
  
  
          :param domain: The domain of this ScopedTokenUser.
          :type: TokenDomainResult
          """
          self._domain = domain
  
      @property
      def os_federation(self):
          """Gets the os_federation of this ScopedTokenUser.
  
  
          :return: The os_federation of this ScopedTokenUser.
          :rtype: TokenUserOsfederation
          """
          return self._os_federation
  
      @os_federation.setter
      def os_federation(self, os_federation):
          """Sets the os_federation of this ScopedTokenUser.
  
  
          :param os_federation: The os_federation of this ScopedTokenUser.
          :type: TokenUserOsfederation
          """
          self._os_federation = os_federation
  
      @property
      def id(self):
          """Gets the id of this ScopedTokenUser.
  
          用户ID。
  
          :return: The id of this ScopedTokenUser.
          :rtype: str
          """
          return self._id
  
      @id.setter
      def id(self, id):
          """Sets the id of this ScopedTokenUser.
  
          用户ID。
  
          :param id: The id of this ScopedTokenUser.
          :type: str
          """
          self._id = id
  
      @property
      def name(self):
          """Gets the name of this ScopedTokenUser.
  
          用户名。
  
          :return: The name of this ScopedTokenUser.
          :rtype: str
          """
          return self._name
  
      @name.setter
      def name(self, name):
          """Sets the name of this ScopedTokenUser.
  
          用户名。
  
          :param name: The name of this ScopedTokenUser.
          :type: str
          """
          self._name = name
  
      @property
      def password_expires_at(self):
          """Gets the password_expires_at of this ScopedTokenUser.
  
          密码过期时间（UTC时间），“”表示密码不过期。
  
          :return: The password_expires_at of this ScopedTokenUser.
          :rtype: str
          """
          return self._password_expires_at
  
      @password_expires_at.setter
      def password_expires_at(self, password_expires_at):
          """Sets the password_expires_at of this ScopedTokenUser.
  
          密码过期时间（UTC时间），“”表示密码不过期。
  
          :param password_expires_at: The password_expires_at of this ScopedTokenUser.
          :type: str
          """
          self._password_expires_at = password_expires_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:
                  if attr in self.sensitive_list:
                      result[attr] = "****"
                  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, ScopedTokenUser):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  