-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ServicePrincipalCredential.cs
46 lines (40 loc) · 2.46 KB
/
ServicePrincipalCredential.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core.Expressions.DataFactory;
namespace Azure.ResourceManager.DataFactory.Models
{
/// <summary> Service principal credential. </summary>
public partial class ServicePrincipalCredential : DataFactoryCredential
{
/// <summary> Initializes a new instance of <see cref="ServicePrincipalCredential"/>. </summary>
public ServicePrincipalCredential()
{
CredentialType = "ServicePrincipal";
}
/// <summary> Initializes a new instance of <see cref="ServicePrincipalCredential"/>. </summary>
/// <param name="credentialType"> Type of credential. </param>
/// <param name="description"> Credential description. </param>
/// <param name="annotations"> List of tags that can be used for describing the Credential. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
/// <param name="servicePrincipalId"> The app ID of the service principal used to authenticate. </param>
/// <param name="servicePrincipalKey"> The key of the service principal used to authenticate. </param>
/// <param name="tenant"> The ID of the tenant to which the service principal belongs. </param>
internal ServicePrincipalCredential(string credentialType, string description, IList<BinaryData> annotations, IDictionary<string, BinaryData> additionalProperties, DataFactoryElement<string> servicePrincipalId, DataFactoryKeyVaultSecretReference servicePrincipalKey, DataFactoryElement<string> tenant) : base(credentialType, description, annotations, additionalProperties)
{
ServicePrincipalId = servicePrincipalId;
ServicePrincipalKey = servicePrincipalKey;
Tenant = tenant;
CredentialType = credentialType ?? "ServicePrincipal";
}
/// <summary> The app ID of the service principal used to authenticate. </summary>
public DataFactoryElement<string> ServicePrincipalId { get; set; }
/// <summary> The key of the service principal used to authenticate. </summary>
public DataFactoryKeyVaultSecretReference ServicePrincipalKey { get; set; }
/// <summary> The ID of the tenant to which the service principal belongs. </summary>
public DataFactoryElement<string> Tenant { get; set; }
}
}