DiskRestorePointOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:disk_restore_point> attribute.

Constructor

DiskRestorePointOperations(*args, **kwargs)

Methods

begin_grant_access

Grants access to a diskRestorePoint.

begin_revoke_access

Revokes access to a diskRestorePoint.

get

Get disk restorePoint resource.

list_by_restore_point

Lists diskRestorePoints under a vmRestorePoint.

begin_grant_access

Grants access to a diskRestorePoint.

begin_grant_access(resource_group_name: str, restore_point_collection_name: str, vm_restore_point_name: str, disk_restore_point_name: str, grant_access_data: _models.GrantAccessData, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AccessUri]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

restore_point_collection_name
Required
str

The name of the restore point collection that the disk restore point belongs. Required.

vm_restore_point_name
Required
str

The name of the vm restore point that the disk disk restore point belongs. Required.

disk_restore_point_name
Required
str

The name of the DiskRestorePoint. Required.

grant_access_data
Required
GrantAccessData or <xref:JSON> or IO[bytes]

Access data object supplied in the body of the get disk access operation. Is one of the following types: GrantAccessData, JSON, IO[bytes] Required.

Returns

Type Description

An instance of LROPoller that returns AccessUri. The AccessUri is compatible with MutableMapping

Exceptions

Type Description

begin_revoke_access

Revokes access to a diskRestorePoint.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

restore_point_collection_name
Required
str

The name of the restore point collection that the disk restore point belongs. Required.

vm_restore_point_name
Required
str

The name of the vm restore point that the disk disk restore point belongs. Required.

disk_restore_point_name
Required
str

The name of the DiskRestorePoint. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

get

Get disk restorePoint resource.

get(resource_group_name: str, restore_point_collection_name: str, vm_restore_point_name: str, disk_restore_point_name: str, **kwargs: Any) -> DiskRestorePoint

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

restore_point_collection_name
Required
str

The name of the restore point collection that the disk restore point belongs. Required.

vm_restore_point_name
Required
str

The name of the vm restore point that the disk disk restore point belongs. Required.

disk_restore_point_name
Required
str

The name of the DiskRestorePoint. Required.

Returns

Type Description

DiskRestorePoint. The DiskRestorePoint is compatible with MutableMapping

Exceptions

Type Description

list_by_restore_point

Lists diskRestorePoints under a vmRestorePoint.

list_by_restore_point(resource_group_name: str, restore_point_collection_name: str, vm_restore_point_name: str, **kwargs: Any) -> ItemPaged[DiskRestorePoint]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

restore_point_collection_name
Required
str

The name of the restore point collection that the disk restore point belongs. Required.

vm_restore_point_name
Required
str

The name of the vm restore point that the disk disk restore point belongs. Required.

Returns

Type Description

An iterator like instance of DiskRestorePoint

Exceptions

Type Description