| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using Azure.Core; |
| | 6 | |
|
| | 7 | | namespace Azure.Template |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// The options for <see cref="MiniSecretClient"/> |
| | 11 | | /// </summary> |
| | 12 | | public class MiniSecretClientOptions : ClientOptions |
| | 13 | | { |
| 4 | 14 | | internal string Version { get; } |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Initializes a new instance of the <see cref="MiniSecretClientOptions"/>. |
| | 18 | | /// </summary> |
| 4 | 19 | | public MiniSecretClientOptions(ServiceVersion version = ServiceVersion.V7_0) |
| | 20 | | { |
| 4 | 21 | | Version = version switch |
| 4 | 22 | | { |
| 8 | 23 | | ServiceVersion.V7_0 => "7.0", |
| 0 | 24 | | _ => throw new ArgumentException($"The service version {version} is not supported by this library.", nam |
| 4 | 25 | | }; |
| 4 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// The template service version. |
| | 30 | | /// </summary> |
| | 31 | | public enum ServiceVersion |
| | 32 | | { |
| | 33 | | /// <summary> |
| | 34 | | /// The 7.0 of the secret service. |
| | 35 | | /// </summary> |
| | 36 | | #pragma warning disable CA1707 // Remove the underscores from member name |
| | 37 | | V7_0 = 1 |
| | 38 | | #pragma warning restore |
| | 39 | | } |
| | 40 | | } |
| | 41 | | } |