AbstractDatastore Class
Represents the base class for all datastores.
Datastores reference storage services in Azure and contain connection information to them. When working with Azure Machine Learning experiments, you can retrieve datastores already registered with your workspace or register new ones. To get started with datastores including create a new datastore, see the Datastore class.
Note: When using a datastore to access data, you must have permission to access the data, which depends on the credentials registered with the datastore.
You should not work with this class directly. To create a datastore, use one of the register*
methods
of the Datastore class such as register_azure_blob_container.
Class AbstractDatastore constructor.
This is a base class and users should not be creating this class using the constructor.
- Inheritance
-
builtins.objectAbstractDatastore
Constructor
AbstractDatastore(workspace, name, datastore_type)
Parameters
Name | Description |
---|---|
workspace
Required
|
The workspace this datastore belongs to. |
name
Required
|
The datastore name. |
name
Required
|
The datastore type, for example, "AzureBlob". |
workspace
Required
|
The workspace this datastore belongs to. |
name
Required
|
The datastore name. |
name
Required
|
The datastore type, for example, "AzureBlob". |
datastore_type
Required
|
|
Methods
set_as_default |
Set the current datastore as the default datastore. |
unregister |
Unregister the datastore, the underlying storage service will not be deleted or modified. |
set_as_default
Set the current datastore as the default datastore.
set_as_default()
unregister
Unregister the datastore, the underlying storage service will not be deleted or modified.
unregister()
Attributes
datastore_type
Return the type of the datastore.
Returns
Type | Description |
---|---|
The type of the datastore, for example, "AzureBlob". |