Datastore 類別
Azure ML 工作區的資料存放區,抽象類別。
- 繼承
-
azure.ai.ml.entities._resource.ResourceDatastoreazure.ai.ml.entities._mixins.RestTranslatableMixinDatastoreDatastore
建構函式
Datastore(credentials: ServicePrincipalConfiguration | CertificateConfiguration | NoneCredentialConfiguration | AccountKeyConfiguration | SasTokenConfiguration | None, name: str | None = None, description: str | None = None, tags: Dict | None = None, properties: Dict | None = None, **kwargs: Any)
參數
名稱 | Description |
---|---|
name
|
資料存放區的名稱。 預設值: None
|
description
|
資源的描述。 預設值: None
|
credentials
必要
|
要用於 Azure ML 工作區以連線到儲存體的認證。 |
tags
|
標記字典。 標記可以新增、移除和更新。 預設值: None
|
properties
|
資產屬性字典。 預設值: None
|
kwargs
必要
|
其他組態參數的字典。 |
方法
dump |
以 yaml 格式將資料存放區內容傾印到檔案中。 |
dump
以 yaml 格式將資料存放區內容傾印到檔案中。
dump(dest: str | PathLike | IO, **kwargs: Any) -> None
參數
名稱 | Description |
---|---|
dest
必要
|
接收此資料存放區內容的目的地。 必須是本機檔案的路徑,或是已開啟的檔案資料流程。 如果 dest 是檔案路徑,則會建立新的檔案,並在檔案存在時引發例外狀況。 如果 dest 是開啟的檔案,檔案將直接寫入,如果檔案無法寫入,則會引發例外狀況。 |