1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class EncryptionSettings(Model):
"""Encryption settings for disk or snapshot.
:param enabled: Set this flag to true and provide DiskEncryptionKey and
optional KeyEncryptionKey to enable encryption. Set this flag to false and
remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If
EncryptionSettings is null in the request object, the existing settings
remain unchanged.
:type enabled: bool
:param disk_encryption_key: Key Vault Secret Url and vault id of the disk
encryption key
:type disk_encryption_key:
~azure.mgmt.compute.v2018_06_01.models.KeyVaultAndSecretReference
:param key_encryption_key: Key Vault Key Url and vault id of the key
encryption key
:type key_encryption_key:
~azure.mgmt.compute.v2018_06_01.models.KeyVaultAndKeyReference
"""
_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'disk_encryption_key': {'key': 'diskEncryptionKey', 'type': 'KeyVaultAndSecretReference'},
'key_encryption_key': {'key': 'keyEncryptionKey', 'type': 'KeyVaultAndKeyReference'},
}
def __init__(self, **kwargs):
super(EncryptionSettings, self).__init__(**kwargs)
self.enabled = kwargs.get('enabled', None)
self.disk_encryption_key = kwargs.get('disk_encryption_key', None)
self.key_encryption_key = kwargs.get('key_encryption_key', None)
|