| | | 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.Search.Documents.Indexes.Models |
| | | 11 | | { |
| | | 12 | | /// <summary> Credentials of a registered application created for your search service, used for authenticated access |
| | | 13 | | internal partial class AzureActiveDirectoryApplicationCredentials |
| | | 14 | | { |
| | | 15 | | /// <summary> Initializes a new instance of AzureActiveDirectoryApplicationCredentials. </summary> |
| | | 16 | | /// <param name="applicationId"> An AAD Application ID that was granted the required access permissions to the A |
| | | 17 | | /// <exception cref="ArgumentNullException"> <paramref name="applicationId"/> is null. </exception> |
| | 0 | 18 | | public AzureActiveDirectoryApplicationCredentials(string applicationId) |
| | | 19 | | { |
| | 0 | 20 | | if (applicationId == null) |
| | | 21 | | { |
| | 0 | 22 | | throw new ArgumentNullException(nameof(applicationId)); |
| | | 23 | | } |
| | | 24 | | |
| | 0 | 25 | | ApplicationId = applicationId; |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> Initializes a new instance of AzureActiveDirectoryApplicationCredentials. </summary> |
| | | 29 | | /// <param name="applicationId"> An AAD Application ID that was granted the required access permissions to the A |
| | | 30 | | /// <param name="applicationSecret"> The authentication key of the specified AAD application. </param> |
| | 0 | 31 | | internal AzureActiveDirectoryApplicationCredentials(string applicationId, string applicationSecret) |
| | | 32 | | { |
| | 0 | 33 | | ApplicationId = applicationId; |
| | 0 | 34 | | ApplicationSecret = applicationSecret; |
| | 0 | 35 | | } |
| | | 36 | | |
| | | 37 | | /// <summary> An AAD Application ID that was granted the required access permissions to the Azure Key Vault that |
| | 0 | 38 | | public string ApplicationId { get; set; } |
| | | 39 | | /// <summary> The authentication key of the specified AAD application. </summary> |
| | 0 | 40 | | public string ApplicationSecret { get; set; } |
| | | 41 | | } |
| | | 42 | | } |