-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ODataLinkedService.cs
102 lines (94 loc) · 9.02 KB
/
ODataLinkedService.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// 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> Open Data Protocol (OData) linked service. </summary>
public partial class ODataLinkedService : DataFactoryLinkedServiceProperties
{
/// <summary> Initializes a new instance of <see cref="ODataLinkedService"/>. </summary>
/// <param name="uri"> The URL of the OData service endpoint. Type: string (or Expression with resultType string). </param>
/// <exception cref="ArgumentNullException"> <paramref name="uri"/> is null. </exception>
public ODataLinkedService(DataFactoryElement<string> uri)
{
Argument.AssertNotNull(uri, nameof(uri));
Uri = uri;
LinkedServiceType = "OData";
}
/// <summary> Initializes a new instance of <see cref="ODataLinkedService"/>. </summary>
/// <param name="linkedServiceType"> Type of linked service. </param>
/// <param name="connectVia"> The integration runtime reference. </param>
/// <param name="description"> Linked service description. </param>
/// <param name="parameters"> Parameters for linked service. </param>
/// <param name="annotations"> List of tags that can be used for describing the linked service. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
/// <param name="uri"> The URL of the OData service endpoint. Type: string (or Expression with resultType string). </param>
/// <param name="authenticationType"> Type of authentication used to connect to the OData service. </param>
/// <param name="userName"> User name of the OData service. Type: string (or Expression with resultType string). </param>
/// <param name="password"> Password of the OData service. </param>
/// <param name="authHeaders"> The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type). </param>
/// <param name="tenant"> Specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression with resultType string). </param>
/// <param name="servicePrincipalId"> Specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). </param>
/// <param name="azureCloudType"> Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). </param>
/// <param name="aadResourceId"> Specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). </param>
/// <param name="aadServicePrincipalCredentialType"> Specify the credential type (key or cert) is used for service principal. </param>
/// <param name="servicePrincipalKey"> Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). </param>
/// <param name="servicePrincipalEmbeddedCert"> Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). </param>
/// <param name="servicePrincipalEmbeddedCertPassword"> Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). </param>
/// <param name="encryptedCredential"> The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. </param>
internal ODataLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary<string, EntityParameterSpecification> parameters, IList<BinaryData> annotations, IDictionary<string, BinaryData> additionalProperties, DataFactoryElement<string> uri, ODataAuthenticationType? authenticationType, DataFactoryElement<string> userName, DataFactorySecret password, DataFactoryElement<IDictionary<string, string>> authHeaders, DataFactoryElement<string> tenant, DataFactoryElement<string> servicePrincipalId, DataFactoryElement<string> azureCloudType, DataFactoryElement<string> aadResourceId, ODataAadServicePrincipalCredentialType? aadServicePrincipalCredentialType, DataFactorySecret servicePrincipalKey, DataFactorySecret servicePrincipalEmbeddedCert, DataFactorySecret servicePrincipalEmbeddedCertPassword, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties)
{
Uri = uri;
AuthenticationType = authenticationType;
UserName = userName;
Password = password;
AuthHeaders = authHeaders;
Tenant = tenant;
ServicePrincipalId = servicePrincipalId;
AzureCloudType = azureCloudType;
AadResourceId = aadResourceId;
AadServicePrincipalCredentialType = aadServicePrincipalCredentialType;
ServicePrincipalKey = servicePrincipalKey;
ServicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert;
ServicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword;
EncryptedCredential = encryptedCredential;
LinkedServiceType = linkedServiceType ?? "OData";
}
/// <summary> Initializes a new instance of <see cref="ODataLinkedService"/> for deserialization. </summary>
internal ODataLinkedService()
{
}
/// <summary> The URL of the OData service endpoint. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> Uri { get; set; }
/// <summary> Type of authentication used to connect to the OData service. </summary>
public ODataAuthenticationType? AuthenticationType { get; set; }
/// <summary> User name of the OData service. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> UserName { get; set; }
/// <summary> Password of the OData service. </summary>
public DataFactorySecret Password { get; set; }
/// <summary> The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type). </summary>
public DataFactoryElement<IDictionary<string, string>> AuthHeaders { get; set; }
/// <summary> Specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> Tenant { get; set; }
/// <summary> Specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> ServicePrincipalId { get; set; }
/// <summary> Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> AzureCloudType { get; set; }
/// <summary> Specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> AadResourceId { get; set; }
/// <summary> Specify the credential type (key or cert) is used for service principal. </summary>
public ODataAadServicePrincipalCredentialType? AadServicePrincipalCredentialType { get; set; }
/// <summary> Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). </summary>
public DataFactorySecret ServicePrincipalKey { get; set; }
/// <summary> Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). </summary>
public DataFactorySecret ServicePrincipalEmbeddedCert { get; set; }
/// <summary> Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). </summary>
public DataFactorySecret ServicePrincipalEmbeddedCertPassword { get; set; }
/// <summary> The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. </summary>
public string EncryptedCredential { get; set; }
}
}