DiskAccessesOperations Class
DiskAccessesOperations 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.objectDiskAccessesOperations
Constructor
DiskAccessesOperations(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_create_or_update |
Creates or updates a disk access resource. |
| begin_delete |
Deletes a disk access resource. |
| begin_delete_a_private_endpoint_connection |
Deletes a private endpoint connection under a disk access resource. |
| begin_update |
Updates (patches) a disk access resource. |
| begin_update_a_private_endpoint_connection |
Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection. |
| get |
Gets information about a disk access resource. |
| get_a_private_endpoint_connection |
Gets information about a private endpoint connection under a disk access resource. |
| get_private_link_resources |
Gets the private link resources possible under disk access resource. |
| list |
Lists all the disk access resources under a subscription. |
| list_by_resource_group |
Lists all the disk access resources under a resource group. |
| list_private_endpoint_connections |
List information about private endpoint connections under a disk access resource. |
begin_create_or_update
Creates or updates a disk access resource.
async begin_create_or_update(resource_group_name: str, disk_access_name: str, disk_access: azure.mgmt.compute.v2020_12_01.models._models_py3.DiskAccess, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2020_12_01.models._models_py3.DiskAccess]
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- disk_access
- DiskAccess
disk access object supplied in the body of the Put 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 DiskAccess or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes a disk access resource.
async begin_delete(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is 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
begin_delete_a_private_endpoint_connection
Deletes a private endpoint connection under a disk access resource.
async begin_delete_a_private_endpoint_connection(resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is 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
begin_update
Updates (patches) a disk access resource.
async begin_update(resource_group_name: str, disk_access_name: str, disk_access: azure.mgmt.compute.v2020_12_01.models._models_py3.DiskAccessUpdate, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2020_12_01.models._models_py3.DiskAccess]
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- disk_access
- DiskAccessUpdate
disk access object supplied in the body of the Patch 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 DiskAccess or the result of cls(response)
Return type
Exceptions
begin_update_a_private_endpoint_connection
Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection.
async begin_update_a_private_endpoint_connection(resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, private_endpoint_connection: azure.mgmt.compute.v2020_12_01.models._models_py3.PrivateEndpointConnection, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2020_12_01.models._models_py3.PrivateEndpointConnection]
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
- private_endpoint_connection
- PrivateEndpointConnection
private endpoint connection object supplied in the body of the Put private endpoint connection 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 PrivateEndpointConnection or the result of cls(response)
Return type
Exceptions
get
Gets information about a disk access resource.
async get(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> azure.mgmt.compute.v2020_12_01.models._models_py3.DiskAccess
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is 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
DiskAccess, or the result of cls(response)
Return type
Exceptions
get_a_private_endpoint_connection
Gets information about a private endpoint connection under a disk access resource.
async get_a_private_endpoint_connection(resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, **kwargs: Any) -> azure.mgmt.compute.v2020_12_01.models._models_py3.PrivateEndpointConnection
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is 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
PrivateEndpointConnection, or the result of cls(response)
Return type
Exceptions
get_private_link_resources
Gets the private link resources possible under disk access resource.
async get_private_link_resources(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> azure.mgmt.compute.v2020_12_01.models._models_py3.PrivateLinkResourceListResult
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is 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
PrivateLinkResourceListResult, or the result of cls(response)
Return type
Exceptions
list
Lists all the disk access resources under a subscription.
list(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2020_12_01.models._models_py3.DiskAccessList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DiskAccessList or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all the disk access resources under a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2020_12_01.models._models_py3.DiskAccessList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either DiskAccessList or the result of cls(response)
Return type
Exceptions
list_private_endpoint_connections
List information about private endpoint connections under a disk access resource.
list_private_endpoint_connections(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2020_12_01.models._models_py3.PrivateEndpointConnectionListResult]
Parameters
- disk_access_name
- str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is 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
An iterator like instance of either PrivateEndpointConnectionListResult 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'>
Feedback
Submit and view feedback for