DiskRestorePointOperations Class

DiskRestorePointOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
DiskRestorePointOperations

Constructor

DiskRestorePointOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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.

async 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: azure.mgmt.compute.v2020_12_01.models._models_py3.GrantAccessData, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2020_12_01.models._models_py3.AccessUri]

Parameters

resource_group_name
str
Required

The name of the resource group.

restore_point_collection_name
str
Required

The name of the restore point collection that the disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

vm_restore_point_name
str
Required

The name of the vm restore point that the disk disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

disk_restore_point_name
str
Required

The name of the disk restore point created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

grant_access_data
GrantAccessData
Required

Access data object supplied in the body of the get disk access operation.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response)

Return type

Exceptions

begin_revoke_access

Revokes access to a diskRestorePoint.

async begin_revoke_access(resource_group_name: str, restore_point_collection_name: str, vm_restore_point_name: str, disk_restore_point_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group.

restore_point_collection_name
str
Required

The name of the restore point collection that the disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

vm_restore_point_name
str
Required

The name of the vm restore point that the disk disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

disk_restore_point_name
str
Required

The name of the disk restore point created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either None or the result of cls(response)

Return type

Exceptions

get

Get disk restorePoint resource.

async get(resource_group_name: str, restore_point_collection_name: str, vm_restore_point_name: str, disk_restore_point_name: str, **kwargs: Any) -> azure.mgmt.compute.v2020_12_01.models._models_py3.DiskRestorePoint

Parameters

resource_group_name
str
Required

The name of the resource group.

restore_point_collection_name
str
Required

The name of the restore point collection that the disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

vm_restore_point_name
str
Required

The name of the vm restore point that the disk disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

disk_restore_point_name
str
Required

The name of the disk restore point created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

cls
callable

A custom type or function that will be passed the direct response

Returns

DiskRestorePoint, or the result of cls(response)

Return type

Exceptions

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) -> AsyncIterable[azure.mgmt.compute.v2020_12_01.models._models_py3.DiskRestorePointList]

Parameters

resource_group_name
str
Required

The name of the resource group.

restore_point_collection_name
str
Required

The name of the restore point collection that the disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

vm_restore_point_name
str
Required

The name of the vm restore point that the disk disk restore point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either DiskRestorePointList or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.compute.v2020_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2020_12_01\\models\\__init__.py'>