DiskEncryptionSetsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:disk_encryption_sets> attribute.

Inheritance
builtins.object
DiskEncryptionSetsOperations

Constructor

DiskEncryptionSetsOperations(*args, **kwargs)

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_associated_resources

Lists all resources that are encrypted with this disk encryption set.

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.

begin_create_or_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSet, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DiskEncryptionSet]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_encryption_set_name
Required
str

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

disk_encryption_set
Required

disk encryption set object supplied in the body of the Put disk encryption set operation. Is either a DiskEncryptionSet type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes a disk encryption set.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_encryption_set_name
Required
str

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

begin_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSetUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DiskEncryptionSet]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_encryption_set_name
Required
str

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

disk_encryption_set
Required

disk encryption set object supplied in the body of the Patch disk encryption set operation. Is either a DiskEncryptionSetUpdate type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

get

Gets information about a disk encryption set.

get(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> DiskEncryptionSet

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_encryption_set_name
Required
str

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

Returns

Type Description

DiskEncryptionSet or the result of cls(response)

Exceptions

Type Description

list

Lists all the disk encryption sets under a subscription.

list(**kwargs: Any) -> Iterable[DiskEncryptionSet]

Returns

Type Description

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

Exceptions

Type Description

list_associated_resources

Lists all resources that are encrypted with this disk encryption set.

list_associated_resources(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> Iterable[str]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

disk_encryption_set_name
Required
str

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

Returns

Type Description

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

Exceptions

Type Description

list_by_resource_group

Lists all the disk encryption sets under a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[DiskEncryptionSet]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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