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 SecretItem(Model): 16 """The secret item containing secret metadata. 17 18 Variables are only populated by the server, and will be ignored when 19 sending a request. 20 21 :param id: Secret identifier. 22 :type id: str 23 :param attributes: The secret management attributes. 24 :type attributes: ~azure.keyvault.v2016_10_01.models.SecretAttributes 25 :param tags: Application specific metadata in the form of key-value pairs. 26 :type tags: dict[str, str] 27 :param content_type: Type of the secret value such as a password. 28 :type content_type: str 29 :ivar managed: True if the secret's lifetime is managed by key vault. If 30 this is a key backing a certificate, then managed will be true. 31 :vartype managed: bool 32 """ 33 34 _validation = { 35 'managed': {'readonly': True}, 36 } 37 38 _attribute_map = { 39 'id': {'key': 'id', 'type': 'str'}, 40 'attributes': {'key': 'attributes', 'type': 'SecretAttributes'}, 41 'tags': {'key': 'tags', 'type': '{str}'}, 42 'content_type': {'key': 'contentType', 'type': 'str'}, 43 'managed': {'key': 'managed', 'type': 'bool'}, 44 } 45 46 def __init__(self, **kwargs): 47 super(SecretItem, self).__init__(**kwargs) 48 self.id = kwargs.get('id', None) 49 self.attributes = kwargs.get('attributes', None) 50 self.tags = kwargs.get('tags', None) 51 self.content_type = kwargs.get('content_type', None) 52 self.managed = None 53