code: def submit_import(cls, volume, location, project=None, name=None,
                        overwrite=False, properties=None, parent=None,
                        preserve_folder_structure=True, api=None):
          
          data = {}
          volume = Transform.to_volume(volume)
  
          if project and parent:
              raise SbgError(
                  'Project and parent identifiers are mutually exclusive'
              )
          elif project:
              project = Transform.to_project(project)
              destination = {
                  'project': project
              }
          elif parent:
              parent = Transform.to_file(parent)
              destination = {
                  'parent': parent
              }
          else:
              raise SbgError('Project or parent identifier is required.')
  
          source = {
              'volume': volume,
              'location': location
          }
  
          if name:
              destination['name'] = name
  
          data['source'] = source
          data['destination'] = destination
          data['overwrite'] = overwrite
  
          if not preserve_folder_structure:
              data['preserve_folder_structure'] = preserve_folder_structure
  
          if properties:
              data['properties'] = properties
  
          api = api if api else cls._API
          extra = {
              'resource': cls.__name__,
              'query': data
          }
          logger.info('Submitting import', extra=extra)
          _import = api.post(cls._URL['query'], data=data).json()
          return Import(api=api, **_import)
docs: Submits new import job.
          :param volume: Volume identifier.
          :param location: Volume location.
          :param project: Project identifier.
          :param name: Optional file name.
          :param overwrite: If true it will overwrite file if exists.
          :param properties: Properties dictionary.
          :param parent: The ID of the target folder to which the item should be
              imported. Should not be used together with project.
          :param preserve_folder_structure: Whether to keep the exact source
              folder structure. The default value is true if the item being
              imported is a folder. Should not be used if you are importing
              a file.
          :param api: Api instance.
          :return: Import object.