| | 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 Key Vault secret reference. </summary> |
| | 13 | | public partial class AzureKeyVaultSecretReference : SecretBase |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of AzureKeyVaultSecretReference. </summary> |
| | 16 | | /// <param name="store"> The Azure Key Vault linked service reference. </param> |
| | 17 | | /// <param name="secretName"> The name of the secret in Azure Key Vault. Type: string (or Expression with result |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="store"/> or <paramref name="secretName"/> is null. |
| 0 | 19 | | public AzureKeyVaultSecretReference(LinkedServiceReference store, object secretName) |
| | 20 | | { |
| 0 | 21 | | if (store == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(store)); |
| | 24 | | } |
| 0 | 25 | | if (secretName == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(secretName)); |
| | 28 | | } |
| | 29 | |
|
| 0 | 30 | | Store = store; |
| 0 | 31 | | SecretName = secretName; |
| 0 | 32 | | Type = "AzureKeyVaultSecret"; |
| 0 | 33 | | } |
| | 34 | |
|
| | 35 | | /// <summary> Initializes a new instance of AzureKeyVaultSecretReference. </summary> |
| | 36 | | /// <param name="type"> Type of the secret. </param> |
| | 37 | | /// <param name="store"> The Azure Key Vault linked service reference. </param> |
| | 38 | | /// <param name="secretName"> The name of the secret in Azure Key Vault. Type: string (or Expression with result |
| | 39 | | /// <param name="secretVersion"> The version of the secret in Azure Key Vault. The default value is the latest v |
| 0 | 40 | | internal AzureKeyVaultSecretReference(string type, LinkedServiceReference store, object secretName, object secre |
| | 41 | | { |
| 0 | 42 | | Store = store; |
| 0 | 43 | | SecretName = secretName; |
| 0 | 44 | | SecretVersion = secretVersion; |
| 0 | 45 | | Type = type ?? "AzureKeyVaultSecret"; |
| 0 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> The Azure Key Vault linked service reference. </summary> |
| 0 | 49 | | public LinkedServiceReference Store { get; set; } |
| | 50 | | /// <summary> The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). </ |
| 0 | 51 | | public object SecretName { get; set; } |
| | 52 | | /// <summary> The version of the secret in Azure Key Vault. The default value is the latest version of the secre |
| 0 | 53 | | public object SecretVersion { get; set; } |
| | 54 | | } |
| | 55 | | } |