DiskEncryptionSetsOperations Class
DiskEncryptionSetsOperations 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.objectDiskEncryptionSetsOperations
Constructor
DiskEncryptionSetsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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_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, **kwargs: Any) -> LROPoller[_models.DiskEncryptionSet]
Parameters
- disk_encryption_set_name
- 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.
- disk_encryption_set
- DiskEncryptionSet
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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either DiskEncryptionSet or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes a disk encryption set.
begin_delete(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
- disk_encryption_set_name
- 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.
- 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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
Updates (patches) a disk encryption set.
begin_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSetUpdate, **kwargs: Any) -> LROPoller[_models.DiskEncryptionSet]
Parameters
- disk_encryption_set_name
- 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.
- disk_encryption_set
- DiskEncryptionSetUpdate
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 PollingMethod
By default, your polling method will be ARMPolling. 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 LROPoller that returns either DiskEncryptionSet or the result of cls(response)
Return type
Exceptions
get
Gets information about a disk encryption set.
get(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) -> _models.DiskEncryptionSet
Parameters
- disk_encryption_set_name
- 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.
- 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) -> Iterable[_models.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_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[_models.ResourceUriList]
Parameters
- disk_encryption_set_name
- 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.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ResourceUriList 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) -> Iterable[_models.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
Attributes
models
models = <module 'azure.mgmt.compute.v2021_04_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_04_01\\models\\__init__.py'>
Feedback
Submit and view feedback for