/
AzureMLLinkedService.cs
82 lines (74 loc) · 6.37 KB
/
AzureMLLinkedService.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
// 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;
using Azure.ResourceManager.DataFactory;
namespace Azure.ResourceManager.DataFactory.Models
{
/// <summary> Azure ML Studio Web Service linked service. </summary>
public partial class AzureMLLinkedService : DataFactoryLinkedServiceProperties
{
/// <summary> Initializes a new instance of <see cref="AzureMLLinkedService"/>. </summary>
/// <param name="mlEndpoint"> The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). </param>
/// <param name="apiKey"> The API key for accessing the Azure ML model endpoint. </param>
/// <exception cref="ArgumentNullException"> <paramref name="mlEndpoint"/> or <paramref name="apiKey"/> is null. </exception>
public AzureMLLinkedService(DataFactoryElement<string> mlEndpoint, DataFactorySecret apiKey)
{
Argument.AssertNotNull(mlEndpoint, nameof(mlEndpoint));
Argument.AssertNotNull(apiKey, nameof(apiKey));
MLEndpoint = mlEndpoint;
ApiKey = apiKey;
LinkedServiceType = "AzureML";
}
/// <summary> Initializes a new instance of <see cref="AzureMLLinkedService"/>. </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="mlEndpoint"> The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). </param>
/// <param name="apiKey"> The API key for accessing the Azure ML model endpoint. </param>
/// <param name="updateResourceEndpoint"> The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). </param>
/// <param name="servicePrincipalId"> The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). </param>
/// <param name="servicePrincipalKey"> The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. </param>
/// <param name="tenant"> The name or ID of the tenant to which the service principal belongs. 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>
/// <param name="authentication"> Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). </param>
internal AzureMLLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary<string, EntityParameterSpecification> parameters, IList<BinaryData> annotations, IDictionary<string, BinaryData> additionalProperties, DataFactoryElement<string> mlEndpoint, DataFactorySecret apiKey, DataFactoryElement<string> updateResourceEndpoint, DataFactoryElement<string> servicePrincipalId, DataFactorySecret servicePrincipalKey, DataFactoryElement<string> tenant, string encryptedCredential, DataFactoryElement<string> authentication) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties)
{
MLEndpoint = mlEndpoint;
ApiKey = apiKey;
UpdateResourceEndpoint = updateResourceEndpoint;
ServicePrincipalId = servicePrincipalId;
ServicePrincipalKey = servicePrincipalKey;
Tenant = tenant;
EncryptedCredential = encryptedCredential;
Authentication = authentication;
LinkedServiceType = linkedServiceType ?? "AzureML";
}
/// <summary> Initializes a new instance of <see cref="AzureMLLinkedService"/> for deserialization. </summary>
internal AzureMLLinkedService()
{
}
/// <summary> The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> MLEndpoint { get; set; }
/// <summary> The API key for accessing the Azure ML model endpoint. </summary>
public DataFactorySecret ApiKey { get; set; }
/// <summary> The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> UpdateResourceEndpoint { get; set; }
/// <summary> The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> ServicePrincipalId { get; set; }
/// <summary> The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. </summary>
public DataFactorySecret ServicePrincipalKey { get; set; }
/// <summary> The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> Tenant { 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; }
/// <summary> Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). </summary>
public DataFactoryElement<string> Authentication { get; set; }
}
}