共用方式為


OneLakeDatastore 類別

注意

這是實驗性類別,可以隨時變更。 請參閱 https://aka.ms/azuremlexperimental 以取得詳細資訊。

連結至 Azure ML 工作區的 OneLake 資料存放區。

繼承
azure.ai.ml.entities._datastore.datastore.Datastore
OneLakeDatastore

建構函式

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)

參數

名稱 Description
name
必要
str

資料存放區的名稱。

artifact
必要

OneLake Artifact。 目前僅支援 LakeHouse 成品。

one_lake_workspace_name
必要
str

OneLake 工作區名稱/GUID。 ex) 01234567-abcd-1234-5678-012345678901

endpoint
必要
str

要用於資料存放區的 OneLake 端點。 例如) https://onelake.dfs.fabric.microsoft.com

description
必要
str

資源的描述。

tags
必要

標記字典。 標記可以新增、移除和更新。

properties
必要

資產屬性字典。

credentials
必要

用來向 OneLake 進行驗證的認證。

kwargs
必要

其他組態參數的字典。

方法

dump

以 yaml 格式將資料存放區內容傾印到檔案中。

dump

以 yaml 格式將資料存放區內容傾印到檔案中。

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

參數

名稱 Description
dest
必要
Union[<xref:PathLike>, str, IO[AnyStr]]

接收此資料存放區內容的目的地。 必須是本機檔案的路徑,或是已開啟的檔案資料流程。 如果 dest 是檔案路徑,則會建立新的檔案,並在檔案存在時引發例外狀況。 如果 dest 是開啟的檔案,檔案將直接寫入,如果檔案無法寫入,則會引發例外狀況。

屬性

base_path

資源的基底路徑。

傳回

類型 Description
str

資源的基底路徑。

creation_context

資源的建立內容。

傳回

類型 Description

資源的建立中繼資料。

id

資源識別碼。

傳回

類型 Description

資源的全域識別碼,Azure Resource Manager (ARM) 識別碼。

type