你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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

用于删除还原点集合的操作。 此操作还将删除包含的所有还原点。

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

参数

resource_group_name
str
必需

资源组的名称。 必需。

restore_point_collection_name
str
必需

还原点集合的名称。 必需。

cls
callable

将传递直接响应的自定义类型或函数

continuation_token
str

用于从保存状态重启轮询的继续标记。

polling
boolPollingMethod

默认情况下,轮询方法将为 ARMPolling。 将此操作传入 False 以不进行轮询,或为个人轮询策略传入你自己的初始化轮询对象。

polling_interval
int

如果没有 Retry-After 标头,则 LRO 操作的两次轮询之间的默认等待时间。

返回

LROPoller 的实例,返回 None 或 cls 的结果 (响应)

返回类型

例外

create_or_update

用于创建或更新还原点集合的操作。 有关更多详细信息,请参阅 https://aka.ms/RestorePoints。 更新还原点集合时,只能修改标记。

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

Body 参数内容类型。 已知值为:“application/json”。 默认值为 None。

cls
callable

将传递直接响应的自定义类型或函数

返回

RestorePointCollection 或 cls 的结果 (响应)

返回类型

例外

get

用于获取还原点集合的操作。

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 表达式。 如果 expand=restorePoints,服务器将返回 restorePointCollection 中的所有包含还原点。 “restorePoints”默认值为 None。

cls
callable

将传递直接响应的自定义类型或函数

返回

RestorePointCollection 或 cls 的结果 (响应)

返回类型

例外

list

获取资源组中还原点集合的列表。

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

参数

resource_group_name
str
必需

资源组的名称。 必需。

cls
callable

将传递直接响应的自定义类型或函数

返回

一个迭代器,例如 RestorePointCollection 的实例或 cls (响应)

返回类型

例外

list_all

获取订阅中还原点集合的列表。 在响应中使用 nextLink 属性获取还原点集合的下一页。 执行此操作,直到 nextLink 不为 null 可提取所有还原点集合。

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

参数

cls
callable

将传递直接响应的自定义类型或函数

返回

一个迭代器,例如 RestorePointCollection 的实例或 cls (响应)

返回类型

例外

update

用于更新还原点集合的操作。

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

Body 参数内容类型。 已知值为:“application/json”。 默认值为 None。

cls
callable

将传递直接响应的自定义类型或函数

返回

RestorePointCollection 或 cls 的结果 (响应)

返回类型

例外

属性

models

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