OneLakeDatastore Class

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

OneLake datastore that is linked to an Azure ML workspace.

Inheritance
azure.ai.ml.entities._datastore.datastore.Datastore
OneLakeDatastore

Constructor

OneLakeDatastore(*, name: str, artifact: OneLakeArtifact, one_lake_workspace_name: str, endpoint: str | None = None, description: str | None = None, tags: Dict | None = None, properties: Dict | None = None, credentials: NoneCredentialConfiguration | ServicePrincipalConfiguration | None = None, **kwargs: Any)

Parameters

Name Description
name
Required
str

Name of the datastore.

artifact
Required

OneLake Artifact. Only LakeHouse artifacts are currently supported.

one_lake_workspace_name
Required
str

OneLake workspace name/GUID. ex) 01234567-abcd-1234-5678-012345678901

endpoint
Required
str

OneLake endpoint to use for the datastore. ex) https://onelake.dfs.fabric.microsoft.com

description
Required
str

Description of the resource.

tags
Required

Tag dictionary. Tags can be added, removed, and updated.

properties
Required

The asset property dictionary.

credentials
Required

Credentials to use to authenticate against OneLake.

kwargs
Required

A dictionary of additional configuration parameters.

Methods

dump

Dump the datastore content into a file in yaml format.

dump

Dump the datastore content into a file in yaml format.

dump(dest: str | PathLike | IO, **kwargs: Any) -> None

Parameters

Name Description
dest
Required
Union[<xref:PathLike>, str, IO[AnyStr]]

The destination to receive this datastore's content. Must be either a path to a local file, or an already-open file stream. If dest is a file path, a new file will be created, and an exception is raised if the file exists. If dest is an open file, the file will be written to directly, and an exception will be raised if the file is not writable.

Attributes

base_path

The base path of the resource.

Returns

Type Description
str

The base path of the resource.

creation_context

The creation context of the resource.

Returns

Type Description

The creation metadata for the resource.

id

The resource ID.

Returns

Type Description

The global ID of the resource, an Azure Resource Manager (ARM) ID.

type