Skip to contents

Imports a workspace object (for example, a notebook or file) or the contents of an entire directory. If path already exists and overwrite is set to false, this call returns an error RESOURCE_ALREADY_EXISTS. To import a directory, you can use either the DBC format or the SOURCE format with the language field unset. To import a single file as SOURCE, you must set the language field.

Usage

import_notebook(
  client,
  path,
  content = NULL,
  format = NULL,
  language = NULL,
  overwrite = NULL
)

workspaceImport(
  client,
  path,
  content = NULL,
  format = NULL,
  language = NULL,
  overwrite = NULL
)

Arguments

client

Required. Instance of DatabricksClient()

path

Required. The absolute path of the object or directory.

content

The base64-encoded content.

format

This specifies the format of the file to be imported.

language

The language of the object.

overwrite

The flag that specifies whether to overwrite existing object.