| | | 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.KeyVault.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Properties of the key pair backing a certificate. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class KeyProperties |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the KeyProperties class. |
| | | 23 | | /// </summary> |
| | 130 | 24 | | public KeyProperties() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 130 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the KeyProperties class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="exportable">Indicates if the private key can be |
| | | 33 | | /// exported.</param> |
| | | 34 | | /// <param name="keyType">The type of key pair to be used for the |
| | | 35 | | /// certificate. Possible values include: 'EC', 'EC-HSM', 'RSA', |
| | | 36 | | /// 'RSA-HSM', 'oct'</param> |
| | | 37 | | /// <param name="keySize">The key size in bits. For example: 2048, |
| | | 38 | | /// 3072, or 4096 for RSA.</param> |
| | | 39 | | /// <param name="reuseKey">Indicates if the same key pair will be used |
| | | 40 | | /// on certificate renewal.</param> |
| | | 41 | | /// <param name="curve">Elliptic curve name. For valid values, see |
| | | 42 | | /// Microsoft.Azure.KeyVault.WebKey.JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', |
| | | 43 | | /// 'P-521', 'P-256K'</param> |
| | 0 | 44 | | public KeyProperties(bool? exportable = default(bool?), string keyType = default(string), int? keySize = default |
| | | 45 | | { |
| | 0 | 46 | | Exportable = exportable; |
| | 0 | 47 | | KeyType = keyType; |
| | 0 | 48 | | KeySize = keySize; |
| | 0 | 49 | | ReuseKey = reuseKey; |
| | 0 | 50 | | Curve = curve; |
| | | 51 | | CustomInit(); |
| | 0 | 52 | | } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// An initialization method that performs custom operations like setting defaults |
| | | 56 | | /// </summary> |
| | | 57 | | partial void CustomInit(); |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Gets or sets indicates if the private key can be exported. |
| | | 61 | | /// </summary> |
| | | 62 | | [JsonProperty(PropertyName = "exportable")] |
| | 168 | 63 | | public bool? Exportable { get; set; } |
| | | 64 | | |
| | | 65 | | /// <summary> |
| | | 66 | | /// Gets or sets the type of key pair to be used for the certificate. |
| | | 67 | | /// Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct' |
| | | 68 | | /// </summary> |
| | | 69 | | [JsonProperty(PropertyName = "kty")] |
| | 168 | 70 | | public string KeyType { get; set; } |
| | | 71 | | |
| | | 72 | | /// <summary> |
| | | 73 | | /// Gets or sets the key size in bits. For example: 2048, 3072, or 4096 |
| | | 74 | | /// for RSA. |
| | | 75 | | /// </summary> |
| | | 76 | | [JsonProperty(PropertyName = "key_size")] |
| | 168 | 77 | | public int? KeySize { get; set; } |
| | | 78 | | |
| | | 79 | | /// <summary> |
| | | 80 | | /// Gets or sets indicates if the same key pair will be used on |
| | | 81 | | /// certificate renewal. |
| | | 82 | | /// </summary> |
| | | 83 | | [JsonProperty(PropertyName = "reuse_key")] |
| | 168 | 84 | | public bool? ReuseKey { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Gets or sets elliptic curve name. For valid values, see |
| | | 88 | | /// Microsoft.Azure.KeyVault.WebKey.JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', |
| | | 89 | | /// 'P-521', 'P-256K' |
| | | 90 | | /// </summary> |
| | | 91 | | [JsonProperty(PropertyName = "crv")] |
| | 0 | 92 | | public string Curve { get; set; } |
| | | 93 | | |
| | | 94 | | } |
| | | 95 | | } |