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.objectRestorePointCollectionsOperations
Constructor
RestorePointCollectionsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- 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_07_01.models._models_py3.RestorePointCollection, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.RestorePointCollection
Parameters
- parameters
- RestorePointCollection
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_07_01.models._compute_management_client_enums.RestorePointCollectionExpandOptions]] = None, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.RestorePointCollection
Parameters
- expand
- str or RestorePointCollectionExpandOptions
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_07_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
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_07_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_07_01.models._models_py3.RestorePointCollectionUpdate, **kwargs: Any) -> azure.mgmt.compute.v2021_07_01.models._models_py3.RestorePointCollection
Parameters
- parameters
- RestorePointCollectionUpdate
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_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_07_01\\models\\__init__.py'>
Feedback
Submit and view feedback for