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.object
DiskAccessesOperations

Constructor

DiskAccessesOperations(client, config, serializer, deserializer) -> None

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

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_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: azure.mgmt.compute.v2020_06_30.models._models_py3.DiskAccess, **kwargs: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[_ForwardRef('_models.DiskAccess')]

Parameters

resource_group_name
str
Required

The name of the resource group.

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

disk_access
DiskAccess
Required

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

~azure.core.exceptions.HttpResponseError

begin_delete

Deletes a disk access resource.

begin_delete(resource_group_name: str, disk_access_name: str, **kwargs: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[NoneType]

Parameters

resource_group_name
str
Required

The name of the resource group.

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

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

~azure.core.exceptions.HttpResponseError

begin_update

Updates (patches) a disk access resource.

begin_update(resource_group_name: str, disk_access_name: str, disk_access: azure.mgmt.compute.v2020_06_30.models._models_py3.DiskAccessUpdate, **kwargs: typing.Any) -> azure.core.polling._async_poller.AsyncLROPoller[_ForwardRef('_models.DiskAccess')]

Parameters

resource_group_name
str
Required

The name of the resource group.

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

disk_access
DiskAccessUpdate
Required

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

~azure.core.exceptions.HttpResponseError

get

Gets information about a disk access resource.

get(resource_group_name: str, disk_access_name: str, **kwargs: typing.Any) -> azure.mgmt.compute.v2020_06_30.models._models_py3.DiskAccess

Parameters

resource_group_name
str
Required

The name of the resource group.

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

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

~azure.core.exceptions.HttpResponseError

Gets the private link resources possible under disk access resource.

get_private_link_resources(resource_group_name: str, disk_access_name: str, **kwargs: typing.Any) -> azure.mgmt.compute.v2020_06_30.models._models_py3.PrivateLinkResourceListResult

Parameters

resource_group_name
str
Required

The name of the resource group.

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

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

~azure.core.exceptions.HttpResponseError

list

Lists all the disk access resources under a subscription.

list(**kwargs: typing.Any) -> typing.AsyncIterable[_ForwardRef('_models.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

~azure.core.exceptions.HttpResponseError

list_by_resource_group

Lists all the disk access resources under a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: typing.Any) -> typing.AsyncIterable[_ForwardRef('_models.DiskAccessList')]

Parameters

resource_group_name
str
Required

The name of the resource group.

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

~azure.core.exceptions.HttpResponseError

Attributes

models

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