DiskAccessesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:disk_accesses> attribute.

Inheritance
builtins.object
DiskAccessesOperations

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.

begin_create_or_update(resource_group_name: str, disk_access_name: str, disk_access: _models.DiskAccess, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DiskAccess]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. 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 LROPoller that returns either DiskAccess or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes a disk access resource.

begin_delete(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. Required.

Returns

Type Description

An instance of LROPoller 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.

begin_delete_a_private_endpoint_connection(resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. Required.

private_endpoint_connection_name
Required
str

The name of the private endpoint connection. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_update

Updates (patches) a disk access resource.

begin_update(resource_group_name: str, disk_access_name: str, disk_access: _models.DiskAccessUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DiskAccess]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. 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 LROPoller 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.

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) -> LROPoller[_models.PrivateEndpointConnection]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. Required.

private_endpoint_connection_name
Required
str

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 LROPoller that returns either PrivateEndpointConnection or the result of cls(response)

Exceptions

Type Description

get

Gets information about a disk access resource.

get(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> DiskAccess

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. 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.

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
str

The name of the resource group. Required.

disk_access_name
Required
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. Required.

private_endpoint_connection_name
Required
str

The name of the private endpoint connection. Required.

Returns

Type Description

PrivateEndpointConnection or the result of cls(response)

Exceptions

Type Description

Gets the private link resources possible under disk access resource.

get_private_link_resources(resource_group_name: str, disk_access_name: str, **kwargs: Any) -> PrivateLinkResourceListResult

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. 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) -> Iterable[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) -> Iterable[DiskAccess]

Parameters

Name Description
resource_group_name
Required
str

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) -> Iterable[PrivateEndpointConnection]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_access_name
Required
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. 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'>