DiskAccessesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:disk_accesses> attribute.
- Inheritance
-
builtins.objectDiskAccessesOperations
Constructor
DiskAccessesOperations(*args, **kwargs)
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: _models.DiskAccess, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.DiskAccess]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
disk_access
Required
|
disk access object supplied in the body of the Put disk access operation. Is either a DiskAccess type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes a disk access resource.
async begin_delete(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
private_endpoint_connection_name
Required
|
The name of the private endpoint connection. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Updates (patches) a disk access resource.
async begin_update(resource_group_name: str, disk_access_name: str, disk_access: _models.DiskAccessUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.DiskAccess]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
disk_access
Required
|
disk access object supplied in the body of the Patch disk access operation. Is either a DiskAccessUpdate type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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: _models.PrivateEndpointConnection, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.PrivateEndpointConnection]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
private_endpoint_connection_name
Required
|
The name of the private endpoint connection. Required. |
private_endpoint_connection
Required
|
private endpoint connection object supplied in the body of the Put private endpoint connection operation. Is either a PrivateEndpointConnection type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets information about a disk access resource.
async get(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> DiskAccess
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
Returns
Type | Description |
---|---|
DiskAccess or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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) -> PrivateEndpointConnection
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
private_endpoint_connection_name
Required
|
The name of the private endpoint connection. Required. |
Returns
Type | Description |
---|---|
PrivateEndpointConnection or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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) -> PrivateLinkResourceListResult
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
Returns
Type | Description |
---|---|
PrivateLinkResourceListResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Lists all the disk access resources under a subscription.
list(**kwargs: Any) -> AsyncIterable[DiskAccess]
Returns
Type | Description |
---|---|
An iterator like instance of either DiskAccess or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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[DiskAccess]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either DiskAccess or the result of cls(response) |
Exceptions
Type | Description |
---|---|
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[PrivateEndpointConnection]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_access_name
Required
|
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. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either PrivateEndpointConnection or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.compute.v2020_09_30.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2020_09_30\\models\\__init__.py'>
Azure SDK for Python