code: def fromimportupdate(cls, bundle, import_reg):
          # type: (Bundle, ImportRegistration) -> RemoteServiceAdminEvent
          
          exc = import_reg.get_exception()
          if exc:
              return RemoteServiceAdminEvent(
                  RemoteServiceAdminEvent.IMPORT_ERROR,
                  bundle,
                  import_reg.get_import_container_id(),
                  import_reg.get_remoteservice_id(),
                  None,
                  None,
                  exc,
                  import_reg.get_description(),
              )
  
          return RemoteServiceAdminEvent(
              RemoteServiceAdminEvent.IMPORT_UPDATE,
              bundle,
              import_reg.get_import_container_id(),
              import_reg.get_remoteservice_id(),
              import_reg.get_import_reference(),
              None,
              None,
              import_reg.get_description(),
          )
docs: Creates a RemoteServiceAdminEvent object from the update of an
          ImportRegistration