|  |  | 1 |  | // <auto-generated> | 
|  |  | 2 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 3 |  | // Licensed under the MIT License. See License.txt in the project root for | 
|  |  | 4 |  | // license information. | 
|  |  | 5 |  | // | 
|  |  | 6 |  | // Code generated by Microsoft (R) AutoRest Code Generator. | 
|  |  | 7 |  | // Changes may cause incorrect behavior and will be lost if the code is | 
|  |  | 8 |  | // regenerated. | 
|  |  | 9 |  | // </auto-generated> | 
|  |  | 10 |  |  | 
|  |  | 11 |  | namespace Microsoft.Azure.Graph.RBAC.Models | 
|  |  | 12 |  | { | 
|  |  | 13 |  |     using Newtonsoft.Json; | 
|  |  | 14 |  |     using System.Collections; | 
|  |  | 15 |  |     using System.Collections.Generic; | 
|  |  | 16 |  |     using System.Linq; | 
|  |  | 17 |  |  | 
|  |  | 18 |  |     /// <summary> | 
|  |  | 19 |  |     /// Active Directory Key Credential information. | 
|  |  | 20 |  |     /// </summary> | 
|  |  | 21 |  |     public partial class KeyCredential | 
|  |  | 22 |  |     { | 
|  |  | 23 |  |         /// <summary> | 
|  |  | 24 |  |         /// Initializes a new instance of the KeyCredential class. | 
|  |  | 25 |  |         /// </summary> | 
|  | 156 | 26 |  |         public KeyCredential() | 
|  |  | 27 |  |         { | 
|  |  | 28 |  |             CustomInit(); | 
|  | 156 | 29 |  |         } | 
|  |  | 30 |  |  | 
|  |  | 31 |  |         /// <summary> | 
|  |  | 32 |  |         /// Initializes a new instance of the KeyCredential class. | 
|  |  | 33 |  |         /// </summary> | 
|  |  | 34 |  |         /// <param name="additionalProperties">Unmatched properties from the | 
|  |  | 35 |  |         /// message are deserialized this collection</param> | 
|  |  | 36 |  |         /// <param name="startDate">Start date.</param> | 
|  |  | 37 |  |         /// <param name="endDate">End date.</param> | 
|  |  | 38 |  |         /// <param name="value">Key value.</param> | 
|  |  | 39 |  |         /// <param name="keyId">Key ID.</param> | 
|  |  | 40 |  |         /// <param name="usage">Usage. Acceptable values are 'Verify' and | 
|  |  | 41 |  |         /// 'Sign'.</param> | 
|  |  | 42 |  |         /// <param name="type">Type. Acceptable values are 'AsymmetricX509Cert' | 
|  |  | 43 |  |         /// and 'Symmetric'.</param> | 
|  |  | 44 |  |         /// <param name="customKeyIdentifier">Custom Key Identifier</param> | 
|  | 0 | 45 |  |         public KeyCredential(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), Sy | 
|  |  | 46 |  |         { | 
|  | 0 | 47 |  |             AdditionalProperties = additionalProperties; | 
|  | 0 | 48 |  |             StartDate = startDate; | 
|  | 0 | 49 |  |             EndDate = endDate; | 
|  | 0 | 50 |  |             Value = value; | 
|  | 0 | 51 |  |             KeyId = keyId; | 
|  | 0 | 52 |  |             Usage = usage; | 
|  | 0 | 53 |  |             Type = type; | 
|  | 0 | 54 |  |             CustomKeyIdentifier = customKeyIdentifier; | 
|  |  | 55 |  |             CustomInit(); | 
|  | 0 | 56 |  |         } | 
|  |  | 57 |  |  | 
|  |  | 58 |  |         /// <summary> | 
|  |  | 59 |  |         /// An initialization method that performs custom operations like setting defaults | 
|  |  | 60 |  |         /// </summary> | 
|  |  | 61 |  |         partial void CustomInit(); | 
|  |  | 62 |  |  | 
|  |  | 63 |  |         /// <summary> | 
|  |  | 64 |  |         /// Gets or sets unmatched properties from the message are deserialized | 
|  |  | 65 |  |         /// this collection | 
|  |  | 66 |  |         /// </summary> | 
|  |  | 67 |  |         [JsonExtensionData] | 
|  | 436 | 68 |  |         public IDictionary<string, object> AdditionalProperties { get; set; } | 
|  |  | 69 |  |  | 
|  |  | 70 |  |         /// <summary> | 
|  |  | 71 |  |         /// Gets or sets start date. | 
|  |  | 72 |  |         /// </summary> | 
|  |  | 73 |  |         [JsonProperty(PropertyName = "startDate")] | 
|  | 0 | 74 |  |         public System.DateTime? StartDate { get; set; } | 
|  |  | 75 |  |  | 
|  |  | 76 |  |         /// <summary> | 
|  |  | 77 |  |         /// Gets or sets end date. | 
|  |  | 78 |  |         /// </summary> | 
|  |  | 79 |  |         [JsonProperty(PropertyName = "endDate")] | 
|  | 0 | 80 |  |         public System.DateTime? EndDate { get; set; } | 
|  |  | 81 |  |  | 
|  |  | 82 |  |         /// <summary> | 
|  |  | 83 |  |         /// Gets or sets key value. | 
|  |  | 84 |  |         /// </summary> | 
|  |  | 85 |  |         [JsonProperty(PropertyName = "value")] | 
|  | 0 | 86 |  |         public string Value { get; set; } | 
|  |  | 87 |  |  | 
|  |  | 88 |  |         /// <summary> | 
|  |  | 89 |  |         /// Gets or sets key ID. | 
|  |  | 90 |  |         /// </summary> | 
|  |  | 91 |  |         [JsonProperty(PropertyName = "keyId")] | 
|  | 0 | 92 |  |         public string KeyId { get; set; } | 
|  |  | 93 |  |  | 
|  |  | 94 |  |         /// <summary> | 
|  |  | 95 |  |         /// Gets or sets usage. Acceptable values are 'Verify' and 'Sign'. | 
|  |  | 96 |  |         /// </summary> | 
|  |  | 97 |  |         [JsonProperty(PropertyName = "usage")] | 
|  | 0 | 98 |  |         public string Usage { get; set; } | 
|  |  | 99 |  |  | 
|  |  | 100 |  |         /// <summary> | 
|  |  | 101 |  |         /// Gets or sets type. Acceptable values are 'AsymmetricX509Cert' and | 
|  |  | 102 |  |         /// 'Symmetric'. | 
|  |  | 103 |  |         /// </summary> | 
|  |  | 104 |  |         [JsonProperty(PropertyName = "type")] | 
|  | 0 | 105 |  |         public string Type { get; set; } | 
|  |  | 106 |  |  | 
|  |  | 107 |  |         /// <summary> | 
|  |  | 108 |  |         /// Gets or sets custom Key Identifier | 
|  |  | 109 |  |         /// </summary> | 
|  |  | 110 |  |         [JsonProperty(PropertyName = "customKeyIdentifier")] | 
|  | 0 | 111 |  |         public string CustomKeyIdentifier { get; set; } | 
|  |  | 112 |  |  | 
|  |  | 113 |  |     } | 
|  |  | 114 |  | } |