DiskEncryptionSetsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:disk_encryption_sets> attribute.
- Inheritance
-
builtins.objectDiskEncryptionSetsOperations
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_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: _models.DiskEncryptionSet, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.DiskEncryptionSet]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_encryption_set_name
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. 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 AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes a disk encryption set.
async begin_delete(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_encryption_set_name
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. Required. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Updates (patches) a disk encryption set.
async begin_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSetUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.DiskEncryptionSet]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_encryption_set_name
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. 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 AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets information about a disk encryption set.
async get(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> DiskEncryptionSet
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
disk_encryption_set_name
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. 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) -> AsyncIterable[DiskEncryptionSet]
Returns
Type | Description |
---|---|
An iterator like instance of either DiskEncryptionSet 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) -> AsyncIterable[DiskEncryptionSet]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
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.v2019_11_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2019_11_01\\models\\__init__.py'>
Azure SDK for Python