RestorePointCollectionsOperations Class

RestorePointCollectionsOperations 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
RestorePointCollectionsOperations

Constructor

RestorePointCollectionsOperations(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_delete

The operation to delete the restore point collection. This operation will also delete all the contained restore points.

create_or_update

The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified.

get

The operation to get the restore point collection.

list

Gets the list of restore point collections in a resource group.

list_all

Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections.

update

The operation to update the restore point collection.

begin_delete

The operation to delete the restore point collection. This operation will also delete all the contained restore points.

async begin_delete(resource_group_name: str, restore_point_collection_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.

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

create_or_update

The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified.

async create_or_update(resource_group_name: str, restore_point_collection_name: str, parameters: azure.mgmt.compute.v2021_03_01.models._models_py3.RestorePointCollection, **kwargs: Any) -> azure.mgmt.compute.v2021_03_01.models._models_py3.RestorePointCollection

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.

parameters
RestorePointCollection
Required

Parameters supplied to the Create or Update restore point collection operation.

cls
callable

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

Returns

RestorePointCollection, or the result of cls(response)

Return type

Exceptions

get

The operation to get the restore point collection.

async get(resource_group_name: str, restore_point_collection_name: str, expand: Optional[Union[str, azure.mgmt.compute.v2021_03_01.models._compute_management_client_enums.RestorePointCollectionExpandOptions]] = None, **kwargs: Any) -> azure.mgmt.compute.v2021_03_01.models._models_py3.RestorePointCollection

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.

expand
str or RestorePointCollectionExpandOptions
default value: None

The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points in the restorePointCollection.

cls
callable

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

Returns

RestorePointCollection, or the result of cls(response)

Return type

Exceptions

list

Gets the list of restore point collections in a resource group.

list(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_03_01.models._models_py3.RestorePointCollectionListResult]

Parameters

resource_group_name
str
Required

The name of the resource group.

cls
callable

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

Returns

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

Return type

Exceptions

list_all

Gets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections.

list_all(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_03_01.models._models_py3.RestorePointCollectionListResult]

Parameters

cls
callable

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

Returns

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

Return type

Exceptions

update

The operation to update the restore point collection.

async update(resource_group_name: str, restore_point_collection_name: str, parameters: azure.mgmt.compute.v2021_03_01.models._models_py3.RestorePointCollectionUpdate, **kwargs: Any) -> azure.mgmt.compute.v2021_03_01.models._models_py3.RestorePointCollection

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.

parameters
RestorePointCollectionUpdate
Required

Parameters supplied to the Update restore point collection operation.

cls
callable

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

Returns

RestorePointCollection, or the result of cls(response)

Return type

Exceptions

Attributes

models

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