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에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python