DiskEncryptionSetsOperations Class

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

Constructor

DiskEncryptionSetsOperations(client, config, serializer, deserializer)

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 encryption set.

begin_delete

Deletes a disk encryption set.

begin_update

Updates (patches) a disk encryption set.

get

Gets information about a disk encryption set.

list

Lists all the disk encryption sets under a subscription.

list_by_resource_group

Lists all the disk encryption sets under a resource group.

begin_create_or_update

Creates or updates a disk encryption set.

async begin_create_or_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: azure.mgmt.compute.v2020_05_01.models._models_py3.DiskEncryptionSet, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2020_05_01.models._models_py3.DiskEncryptionSet]

Parameters

resource_group_name
str
Required

The name of the resource group.

disk_encryption_set_name
str
Required

The name of the disk encryption set 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_encryption_set
DiskEncryptionSet
Required

disk encryption set object supplied in the body of the Put disk encryption set 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 DiskEncryptionSet or the result of cls(response)

Return type

Exceptions

begin_delete

Deletes a disk encryption set.

async begin_delete(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group.

disk_encryption_set_name
str
Required

The name of the disk encryption set 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 encryption set.

async begin_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: azure.mgmt.compute.v2020_05_01.models._models_py3.DiskEncryptionSetUpdate, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2020_05_01.models._models_py3.DiskEncryptionSet]

Parameters

resource_group_name
str
Required

The name of the resource group.

disk_encryption_set_name
str
Required

The name of the disk encryption set 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_encryption_set
DiskEncryptionSetUpdate
Required

disk encryption set object supplied in the body of the Patch disk encryption set 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 DiskEncryptionSet or the result of cls(response)

Return type

Exceptions

get

Gets information about a disk encryption set.

async get(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> azure.mgmt.compute.v2020_05_01.models._models_py3.DiskEncryptionSet

Parameters

resource_group_name
str
Required

The name of the resource group.

disk_encryption_set_name
str
Required

The name of the disk encryption set 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

DiskEncryptionSet, or the result of cls(response)

Return type

Exceptions

list

Lists all the disk encryption sets under a subscription.

list(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2020_05_01.models._models_py3.DiskEncryptionSetList]

Parameters

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either DiskEncryptionSetList or the result of cls(response)

Return type

Exceptions

list_by_resource_group

Lists all the disk encryption sets under a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2020_05_01.models._models_py3.DiskEncryptionSetList]

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 DiskEncryptionSetList or the result of cls(response)

Return type

Exceptions

Attributes

models

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