| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | 11 | | { |
| | 12 | | /// <summary> Azure Synapse secure string definition. The string value will be masked with asterisks '*' d |
| | 13 | | public partial class SecureString : SecretBase |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of SecureString. </summary> |
| | 16 | | /// <param name="value"> Value of secure string. </param> |
| | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| 0 | 18 | | public SecureString(string value) |
| | 19 | | { |
| 0 | 20 | | if (value == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(value)); |
| | 23 | | } |
| | 24 | |
|
| 0 | 25 | | Value = value; |
| 0 | 26 | | Type = "SecureString"; |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> Initializes a new instance of SecureString. </summary> |
| | 30 | | /// <param name="type"> Type of the secret. </param> |
| | 31 | | /// <param name="value"> Value of secure string. </param> |
| 0 | 32 | | internal SecureString(string type, string value) : base(type) |
| | 33 | | { |
| 0 | 34 | | Value = value; |
| 0 | 35 | | Type = type ?? "SecureString"; |
| 0 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> Value of secure string. </summary> |
| 0 | 39 | | public string Value { get; set; } |
| | 40 | | } |
| | 41 | | } |