ComputeInstanceStatus 類別
表示 ComputeInstance 物件的詳細狀態資訊。
get_status使用類別的 ComputeInstance 方法可傳回狀態資訊。
初始化 ComputeInstanceStatus 物件。
建構函式
ComputeInstanceStatus(creation_time, created_by_user_name, created_by_user_id, created_by_user_org, errors, modified_time, state, vm_size)
參數
| 名稱 | Description |
|---|---|
|
creation_time
必要
|
實例建立時間。 |
|
created_by_user_name
必要
|
建立此 ComputeInstance 計算之使用者的相關信息。 |
|
created_by_user_id
必要
|
可唯一識別組織內的使用者。 |
|
created_by_user_org
必要
|
可唯一識別使用者 Azure Active Directory 組織。 |
|
errors
必要
|
如果有的話,錯誤詳細數據的清單。 |
|
modified_time
必要
|
實例修改時間。 |
|
state
必要
|
這個 ComputeInstance 物件的目前狀態。 |
|
vm_size
必要
|
代理程式 VM 的大小。 如需詳細資訊,請參閱這裡:https://aka.ms/azureml-vm-details。 請注意,並非所有大小都可在所有區域中使用,如上一個連結中所述。 |
|
creation_time
必要
|
實例建立時間。 |
|
created_by_user_name
必要
|
建立此 ComputeInstance 計算之使用者的相關信息。 |
|
created_by_user_id
必要
|
可唯一識別組織內的使用者。 |
|
created_by_user_org
必要
|
可唯一識別使用者 Azure Active Directory 組織。 |
|
errors
必要
|
如果有的話,錯誤詳細數據的清單。 |
|
modified_time
必要
|
實例修改時間。 |
|
state
必要
|
這個 ComputeInstance 物件的目前狀態。 |
|
vm_size
必要
|
代理程式 VM 的大小。 如需詳細資訊,請參閱這裡:https://aka.ms/azureml-vm-details。 請注意,並非所有大小都可在所有區域中使用,如上一個連結中所述。 |
備註
初始化 ComputeInstanceStatus 物件
方法
| deserialize |
將 JSON 物件轉換成 ComputeInstanceStatus 物件。 |
| serialize |
將此 ComputeInstanceStatus 物件轉換成 JSON 串行化字典。 |
deserialize
將 JSON 物件轉換成 ComputeInstanceStatus 物件。
static deserialize(object_dict)
參數
| 名稱 | Description |
|---|---|
|
object_dict
必要
|
要轉換成 ComputeInstanceStatus 物件的 JSON 物件。 |
傳回
| 類型 | Description |
|---|---|
|
所提供 JSON 物件的 ComputeInstanceStatus 表示法。 |
例外狀況
| 類型 | Description |
|---|---|
serialize
將此 ComputeInstanceStatus 物件轉換成 JSON 串行化字典。
serialize()
傳回
| 類型 | Description |
|---|---|
|
這個 ComputeInstanceStatus 物件的 JSON 表示法。 |