ImageMetadata Class
Metadata about the operating system image for the compute instance.
Constructor
ImageMetadata(*, is_latest_os_image_version: bool | None, current_image_version: str | None, latest_image_version: str | None)
Parameters
Name | Description |
---|---|
is_latest_os_image_version
Required
|
Specifies if the compute instance is running on the latest OS image version. |
current_image_version
Required
|
Version of the current image. |
latest_image_version
Required
|
The latest image version. |
Keyword-Only Parameters
Name | Description |
---|---|
is_latest_os_image_version
Required
|
|
current_image_version
Required
|
|
latest_image_version
Required
|
|
Examples
Creating a ImageMetadata object.
from azure.ai.ml.entities import ImageMetadata
os_image_metadata = ImageMetadata(
current_image_version="22.08.19",
latest_image_version="22.08.20",
is_latest_os_image_version=False,
)
Attributes
current_image_version
The current OS image version number.
Returns
Type | Description |
---|---|
The current OS image version number. |
is_latest_os_image_version
Whether or not a compute instance is running on the latest OS image version.
Returns
Type | Description |
---|---|
Boolean indicating if the compute instance is running the latest OS image version. |
latest_image_version
The latest OS image version number.
Returns
Type | Description |
---|---|
The latest OS image version number. |
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure SDK for Python