-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DataFactorySecretBaseDefinition.cs
31 lines (28 loc) · 1.39 KB
/
DataFactorySecretBaseDefinition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.Core.Expressions.DataFactory
{
/// <summary>
/// The base definition of a secret type.
/// Please note <see cref="DataFactorySecretBaseDefinition"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="DataFactorySecretString"/> and <see cref="DataFactoryKeyVaultSecretReference"/>.
/// </summary>
[PropertyReferenceType(new string[0], new[]{ nameof(SecretBaseType)})]
public abstract partial class DataFactorySecretBaseDefinition
{
/// <summary> Initializes a new instance of DataFactorySecretBaseDefinition. </summary>
[InitializationConstructor]
protected DataFactorySecretBaseDefinition()
{
}
/// <summary> Initializes a new instance of DataFactorySecretBaseDefinition. </summary>
/// <param name="secretBaseType"> Type of the secret. </param>
[SerializationConstructor]
internal DataFactorySecretBaseDefinition(string? secretBaseType)
{
SecretBaseType = secretBaseType;
}
/// <summary> Type of the secret. </summary>
internal string? SecretBaseType { get; set; }
}
}