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 .attributes_py3 import Attributes
13
14
15class SecretAttributes(Attributes):
16    """The secret management attributes.
17
18    Variables are only populated by the server, and will be ignored when
19    sending a request.
20
21    :param enabled: Determines whether the object is enabled.
22    :type enabled: bool
23    :param not_before: Not before date in UTC.
24    :type not_before: datetime
25    :param expires: Expiry date in UTC.
26    :type expires: datetime
27    :ivar created: Creation time in UTC.
28    :vartype created: datetime
29    :ivar updated: Last updated time in UTC.
30    :vartype updated: datetime
31    :ivar recovery_level: Reflects the deletion recovery level currently in
32     effect for secrets in the current vault. If it contains 'Purgeable', the
33     secret can be permanently deleted by a privileged user; otherwise, only
34     the system can purge the secret, at the end of the retention interval.
35     Possible values include: 'Purgeable', 'Recoverable+Purgeable',
36     'Recoverable', 'Recoverable+ProtectedSubscription'
37    :vartype recovery_level: str or
38     ~azure.keyvault.v2016_10_01.models.DeletionRecoveryLevel
39    """
40
41    _validation = {
42        'created': {'readonly': True},
43        'updated': {'readonly': True},
44        'recovery_level': {'readonly': True},
45    }
46
47    _attribute_map = {
48        'enabled': {'key': 'enabled', 'type': 'bool'},
49        'not_before': {'key': 'nbf', 'type': 'unix-time'},
50        'expires': {'key': 'exp', 'type': 'unix-time'},
51        'created': {'key': 'created', 'type': 'unix-time'},
52        'updated': {'key': 'updated', 'type': 'unix-time'},
53        'recovery_level': {'key': 'recoveryLevel', 'type': 'str'},
54    }
55
56    def __init__(self, *, enabled: bool=None, not_before=None, expires=None, **kwargs) -> None:
57        super(SecretAttributes, self).__init__(enabled=enabled, not_before=not_before, expires=expires, **kwargs)
58        self.recovery_level = None
59