Datastore Class
Datastore of an Azure ML workspace, abstract class.
- Inheritance
-
azure.ai.ml.entities._resource.ResourceDatastoreazure.ai.ml.entities._mixins.RestTranslatableMixinDatastoreDatastore
Constructor
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)
Parameters
Name | Description |
---|---|
name
|
Name of the datastore. Default value: None
|
description
|
Description of the resource. Default value: None
|
credentials
Required
|
Credentials to use for Azure ML workspace to connect to the storage. |
tags
|
Tag dictionary. Tags can be added, removed, and updated. Default value: None
|
properties
|
The asset property dictionary. Default value: None
|
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
|
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
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
Azure SDK for Python