| | 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> A WebLinkedService that uses client certificate based authentication to communicate with an HTTP endpo |
| | 13 | | public partial class WebClientCertificateAuthentication : WebLinkedServiceTypeProperties |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of WebClientCertificateAuthentication. </summary> |
| | 16 | | /// <param name="url"> The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Exp |
| | 17 | | /// <param name="pfx"> Base64-encoded contents of a PFX file. </param> |
| | 18 | | /// <param name="password"> Password for the PFX file. </param> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="url"/>, <paramref name="pfx"/>, or <paramref name=" |
| 0 | 20 | | public WebClientCertificateAuthentication(object url, SecretBase pfx, SecretBase password) : base(url) |
| | 21 | | { |
| 0 | 22 | | if (url == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(url)); |
| | 25 | | } |
| 0 | 26 | | if (pfx == null) |
| | 27 | | { |
| 0 | 28 | | throw new ArgumentNullException(nameof(pfx)); |
| | 29 | | } |
| 0 | 30 | | if (password == null) |
| | 31 | | { |
| 0 | 32 | | throw new ArgumentNullException(nameof(password)); |
| | 33 | | } |
| | 34 | |
|
| 0 | 35 | | Pfx = pfx; |
| 0 | 36 | | Password = password; |
| 0 | 37 | | AuthenticationType = WebAuthenticationType.ClientCertificate; |
| 0 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> Initializes a new instance of WebClientCertificateAuthentication. </summary> |
| | 41 | | /// <param name="url"> The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Exp |
| | 42 | | /// <param name="authenticationType"> Type of authentication used to connect to the web table source. </param> |
| | 43 | | /// <param name="pfx"> Base64-encoded contents of a PFX file. </param> |
| | 44 | | /// <param name="password"> Password for the PFX file. </param> |
| 0 | 45 | | internal WebClientCertificateAuthentication(object url, WebAuthenticationType authenticationType, SecretBase pfx |
| | 46 | | { |
| 0 | 47 | | Pfx = pfx; |
| 0 | 48 | | Password = password; |
| 0 | 49 | | AuthenticationType = authenticationType; |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> Base64-encoded contents of a PFX file. </summary> |
| 0 | 53 | | public SecretBase Pfx { get; set; } |
| | 54 | | /// <summary> Password for the PFX file. </summary> |
| 0 | 55 | | public SecretBase Password { get; set; } |
| | 56 | | } |
| | 57 | | } |