1# coding=utf-8 2# -------------------------------------------------------------------------- 3# Copyright (c) Microsoft Corporation. All rights reserved. 4# Licensed under the MIT License. See License.txt in the project root for 5# license information. 6# 7# Code generated by Microsoft (R) AutoRest Code Generator. 8# Changes may cause incorrect behavior and will be lost if the code is 9# regenerated. 10# -------------------------------------------------------------------------- 11 12from .key_bundle import KeyBundle 13 14 15class DeletedKeyBundle(KeyBundle): 16 """A DeletedKeyBundle consisting of a WebKey plus its Attributes and deletion 17 info. 18 19 Variables are only populated by the server, and will be ignored when 20 sending a request. 21 22 :param key: The Json web key. 23 :type key: ~azure.keyvault.v2016_10_01.models.JsonWebKey 24 :param attributes: The key management attributes. 25 :type attributes: ~azure.keyvault.v2016_10_01.models.KeyAttributes 26 :param tags: Application specific metadata in the form of key-value pairs. 27 :type tags: dict[str, str] 28 :ivar managed: True if the key's lifetime is managed by key vault. If this 29 is a key backing a certificate, then managed will be true. 30 :vartype managed: bool 31 :param recovery_id: The url of the recovery object, used to identify and 32 recover the deleted key. 33 :type recovery_id: str 34 :ivar scheduled_purge_date: The time when the key is scheduled to be 35 purged, in UTC 36 :vartype scheduled_purge_date: datetime 37 :ivar deleted_date: The time when the key was deleted, in UTC 38 :vartype deleted_date: datetime 39 """ 40 41 _validation = { 42 'managed': {'readonly': True}, 43 'scheduled_purge_date': {'readonly': True}, 44 'deleted_date': {'readonly': True}, 45 } 46 47 _attribute_map = { 48 'key': {'key': 'key', 'type': 'JsonWebKey'}, 49 'attributes': {'key': 'attributes', 'type': 'KeyAttributes'}, 50 'tags': {'key': 'tags', 'type': '{str}'}, 51 'managed': {'key': 'managed', 'type': 'bool'}, 52 'recovery_id': {'key': 'recoveryId', 'type': 'str'}, 53 'scheduled_purge_date': {'key': 'scheduledPurgeDate', 'type': 'unix-time'}, 54 'deleted_date': {'key': 'deletedDate', 'type': 'unix-time'}, 55 } 56 57 def __init__(self, **kwargs): 58 super(DeletedKeyBundle, self).__init__(**kwargs) 59 self.recovery_id = kwargs.get('recovery_id', None) 60 self.scheduled_purge_date = None 61 self.deleted_date = None 62