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_update

Updates (patches) a disk access resource.

get

Gets information about 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.

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

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

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

Attributes

models

models = <module 'azure.mgmt.compute.v2020_06_30.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2020_06_30\\models\\__init__.py'>