code: def tomof(self, indent=0, maxline=MAX_MOF_LINE):
          
  
          if indent != 0:
              msg = "The 'indent' parameter of CIMInstance.tomof() is " \
                  "deprecated."
              if DEBUG_WARNING_ORIGIN:
                  msg += "\nTraceback:\n" + ''.join(traceback.format_stack())
              warnings.warn(msg, DeprecationWarning,
                            stacklevel=_stacklevel_above_module(__name__))
  
          mof = []
  
          mof.append(u'instance of ')
          mof.append(self.classname)
  
          mof.append(u' {\n')
  
          for p in self.properties.itervalues():
              mof.append(p.tomof(True, MOF_INDENT, maxline))
  
          mof.append(u'};\n')
  
          return u''.join(mof)
docs: Return a MOF string with the specification of this CIM instance.
  
          The returned MOF string conforms to the ``instanceDeclaration``
          ABNF rule defined in :term:`DSP0004`, with the following limitations:
  
          * Pywbem does not support instance aliases, so the returned MOF string
            does not define an alias name for the instance.
  
          * Even though pywbem supports qualifiers on
            :class:`~pywbem.CIMInstance` objects, and on
            :class:`~pywbem.CIMProperty` objects that are used as property values
            within an instance, the returned MOF string does not contain
            any qualifier values on the instance or on its property values.
  
          The order of properties and qualifiers is preserved.
  
          Parameters:
  
            indent (:term:`integer`): This parameter has been deprecated in
              pywbem 0.12. A value other than 0 causes a deprecation warning to
              be issued. Otherwise, the parameter is ignored and the returned MOF
              instance specification is not indented.
  
          Returns:
  
            :term:`unicode string`: MOF string.