azure_ml_sdk.services.asset.base¶
Attributes¶
Classes¶
Base class for Azure Machine Learning asset managers. |
Module Contents¶
- azure_ml_sdk.services.asset.base.AML_ENTITY¶
- class azure_ml_sdk.services.asset.base.BaseAssetManager(ml_client: azure.ai.ml.MLClient, asset_type: str)¶
Base class for Azure Machine Learning asset managers.
- ml_client¶
- asset_type¶
- asset_client¶
- list() List[str]¶
List the names of the assets in the workspace.
- Returns:
The list of the names of the assets in the workspace.
- Return type:
List[str]
- list_versions(name: str) List[str]¶
List the versions of an asset in the workspace.
- Parameters:
name (str) – The name of the asset.
- Returns:
The list of the versions of an asset.
- Return type:
List[str]
- get_latest_version(name: str) str¶
Get the number of the latest version of an environment.
- Parameters:
name (str) – The name of the asset.
- Returns:
The number of the latest version.
- Return type:
str
- get(name: str, version: str | None = None) AML_ENTITY¶
Get a specified asset in the workspace.
- Parameters:
name (str) – The name of the asset.
version (Optional[str], optional) – The version if the asset. Defaults to None.
- Returns:
The specified asset.
- Return type:
AML_ENTITY