| | 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 basic authentication to communicate with an HTTP endpoint. </summary> |
| | 13 | | public partial class WebBasicAuthentication : WebLinkedServiceTypeProperties |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of WebBasicAuthentication. </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="username"> User name for Basic authentication. Type: string (or Expression with resultType stri |
| | 18 | | /// <param name="password"> The password for Basic authentication. </param> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="url"/>, <paramref name="username"/>, or <paramref n |
| 0 | 20 | | public WebBasicAuthentication(object url, object username, SecretBase password) : base(url) |
| | 21 | | { |
| 0 | 22 | | if (url == null) |
| | 23 | | { |
| 0 | 24 | | throw new ArgumentNullException(nameof(url)); |
| | 25 | | } |
| 0 | 26 | | if (username == null) |
| | 27 | | { |
| 0 | 28 | | throw new ArgumentNullException(nameof(username)); |
| | 29 | | } |
| 0 | 30 | | if (password == null) |
| | 31 | | { |
| 0 | 32 | | throw new ArgumentNullException(nameof(password)); |
| | 33 | | } |
| | 34 | |
|
| 0 | 35 | | Username = username; |
| 0 | 36 | | Password = password; |
| 0 | 37 | | AuthenticationType = WebAuthenticationType.Basic; |
| 0 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> Initializes a new instance of WebBasicAuthentication. </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="username"> User name for Basic authentication. Type: string (or Expression with resultType stri |
| | 44 | | /// <param name="password"> The password for Basic authentication. </param> |
| 0 | 45 | | internal WebBasicAuthentication(object url, WebAuthenticationType authenticationType, object username, SecretBas |
| | 46 | | { |
| 0 | 47 | | Username = username; |
| 0 | 48 | | Password = password; |
| 0 | 49 | | AuthenticationType = authenticationType; |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> User name for Basic authentication. Type: string (or Expression with resultType string). </summary |
| 0 | 53 | | public object Username { get; set; } |
| | 54 | | /// <summary> The password for Basic authentication. </summary> |
| 0 | 55 | | public SecretBase Password { get; set; } |
| | 56 | | } |
| | 57 | | } |