ImageMetadata Class
Metadata about the operating system image for the compute instance.
- Inheritance
-
builtins.objectImageMetadata
Constructor
ImageMetadata(*, is_latest_os_image_version: bool, current_image_version: str, latest_image_version: str)
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. |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Python