共用方式為


RestorePointCollectionsOperations 類別

警告

請勿直接具現化此類別。

您應該改為透過 存取下列作業

ComputeManagementClient's

<xref:restore_point_collections> 屬性。

繼承
builtins.object
RestorePointCollectionsOperations

建構函式

RestorePointCollectionsOperations(*args, **kwargs)

方法

begin_delete

要刪除還原點集合的作業。 這項作業也會刪除所有包含的還原點。

create_or_update

建立或更新還原點集合的作業。 如需詳細資訊, https://aka.ms/RestorePoints 請參閱 。 更新還原點集合時,只能修改標記。

get

取得還原點集合的作業。

list

取得資源群組中的還原點集合清單。

list_all

取得訂用帳戶中的還原點集合清單。 在回應中使用 nextLink 屬性來取得還原點集合的下一頁。 請執行此動作,直到 nextLink 不是 Null,才能擷取所有還原點集合。

update

更新還原點集合的作業。

begin_delete

要刪除還原點集合的作業。 這項作業也會刪除所有包含的還原點。

async begin_delete(resource_group_name: str, restore_point_collection_name: str, **kwargs: Any) -> AsyncLROPoller[None]

參數

resource_group_name
str
必要

資源群組的名稱。 必要。

restore_point_collection_name
str
必要

還原點集合的名稱。 必要。

cls
callable

將傳遞直接回應的自訂類型或函式

continuation_token
str

從已儲存狀態重新開機輪詢器的接續權杖。

polling
boolAsyncPollingMethod

根據預設,您的輪詢方法會是 AsyncARMPolling。 傳入 False 表示此作業無法輪詢,或傳入您自己的已初始化輪詢物件,以取得個人輪詢策略。

polling_interval
int

如果沒有 Retry-After 標頭,則兩次輪詢 LRO 作業之間的預設等候時間。

傳回

AsyncLROPoller 的實例,會傳回 None 或 cls (回應的結果)

傳回類型

例外狀況

create_or_update

建立或更新還原點集合的作業。 如需詳細資訊, https://aka.ms/RestorePoints 請參閱 。 更新還原點集合時,只能修改標記。

async create_or_update(resource_group_name: str, restore_point_collection_name: str, parameters: _models.RestorePointCollection, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RestorePointCollection

參數

resource_group_name
str
必要

資源群組的名稱。 必要。

restore_point_collection_name
str
必要

還原點集合的名稱。 必要。

parameters
RestorePointCollectionIO
必要

提供給建立或更新還原點收集作業的參數。 這是 RestorePointCollection 類型或 IO 類型。 必要。

content_type
str

本文參數內容類型。 已知值為:'application/json'。 預設值為 [無]。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

RestorePointCollection 或 cls 的結果 (回應)

傳回類型

例外狀況

get

取得還原點集合的作業。

async get(resource_group_name: str, restore_point_collection_name: str, *, expand: str | RestorePointCollectionExpandOptions | None = None, **kwargs: Any) -> RestorePointCollection

參數

resource_group_name
str
必要

資源群組的名稱。 必要。

restore_point_collection_name
str
必要

還原點集合的名稱。 必要。

expand
strRestorePointCollectionExpandOptions

要套用至作業的展開運算式。 如果 expand=restorePoints,伺服器將會傳回 restorePointCollection 中的所有自主還原點。 「restorePoints」 預設值為 None。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

RestorePointCollection 或 cls 的結果 (回應)

傳回類型

例外狀況

list

取得資源群組中的還原點集合清單。

list(resource_group_name: str, **kwargs: Any) -> AsyncIterable[RestorePointCollection]

參數

resource_group_name
str
必要

資源群組的名稱。 必要。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

像是 RestorePointCollection 實例或 cls (回應結果的反覆運算器)

傳回類型

例外狀況

list_all

取得訂用帳戶中的還原點集合清單。 在回應中使用 nextLink 屬性來取得還原點集合的下一頁。 請執行此動作,直到 nextLink 不是 Null,才能擷取所有還原點集合。

list_all(**kwargs: Any) -> AsyncIterable[RestorePointCollection]

參數

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

像是 RestorePointCollection 實例或 cls (回應結果的反覆運算器)

傳回類型

例外狀況

update

更新還原點集合的作業。

async update(resource_group_name: str, restore_point_collection_name: str, parameters: _models.RestorePointCollectionUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RestorePointCollection

參數

resource_group_name
str
必要

資源群組的名稱。 必要。

restore_point_collection_name
str
必要

還原點集合的名稱。 必要。

parameters
RestorePointCollectionUpdateIO
必要

提供給更新還原點收集作業的參數。 這是 RestorePointCollectionUpdate 類型或 IO 類型。 必要。

content_type
str

本文參數內容類型。 已知值為:'application/json'。 預設值為 [無]。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

RestorePointCollection 或 cls 的結果 (回應)

傳回類型

例外狀況

屬性

models

models = <module 'azure.mgmt.compute.v2023_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2023_07_01\\models\\__init__.py'>