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 msrest.serialization import Model
13
14
15class KeyBundle(Model):
16    """A KeyBundle consisting of a WebKey plus its attributes.
17
18    Variables are only populated by the server, and will be ignored when
19    sending a request.
20
21    :param key: The Json web key.
22    :type key: ~azure.keyvault.v2016_10_01.models.JsonWebKey
23    :param attributes: The key management attributes.
24    :type attributes: ~azure.keyvault.v2016_10_01.models.KeyAttributes
25    :param tags: Application specific metadata in the form of key-value pairs.
26    :type tags: dict[str, str]
27    :ivar managed: True if the key's lifetime is managed by key vault. If this
28     is a key backing a certificate, then managed will be true.
29    :vartype managed: bool
30    """
31
32    _validation = {
33        'managed': {'readonly': True},
34    }
35
36    _attribute_map = {
37        'key': {'key': 'key', 'type': 'JsonWebKey'},
38        'attributes': {'key': 'attributes', 'type': 'KeyAttributes'},
39        'tags': {'key': 'tags', 'type': '{str}'},
40        'managed': {'key': 'managed', 'type': 'bool'},
41    }
42
43    def __init__(self, **kwargs):
44        super(KeyBundle, self).__init__(**kwargs)
45        self.key = kwargs.get('key', None)
46        self.attributes = kwargs.get('attributes', None)
47        self.tags = kwargs.get('tags', None)
48        self.managed = None
49