-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MachineLearningServiceFunctionBinding.cs
64 lines (58 loc) · 4.07 KB
/
MachineLearningServiceFunctionBinding.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.StreamAnalytics.Models
{
/// <summary> The binding to an Azure Machine Learning web service. </summary>
public partial class MachineLearningServiceFunctionBinding : StreamingJobFunctionBinding
{
/// <summary> Initializes a new instance of <see cref="MachineLearningServiceFunctionBinding"/>. </summary>
public MachineLearningServiceFunctionBinding()
{
Inputs = new ChangeTrackingList<MachineLearningServiceInputColumn>();
Outputs = new ChangeTrackingList<MachineLearningServiceOutputColumn>();
FunctionBindingType = "Microsoft.MachineLearningServices";
}
/// <summary> Initializes a new instance of <see cref="MachineLearningServiceFunctionBinding"/>. </summary>
/// <param name="functionBindingType"> Indicates the function binding type. </param>
/// <param name="endpoint"> The Request-Response execute endpoint of the Azure Machine Learning web service. </param>
/// <param name="apiKey"> The API key used to authenticate with Request-Response endpoint. </param>
/// <param name="inputs"> The inputs for the Azure Machine Learning web service endpoint. </param>
/// <param name="outputs"> A list of outputs from the Azure Machine Learning web service endpoint execution. </param>
/// <param name="batchSize"> Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000. </param>
/// <param name="numberOfParallelRequests"> The number of parallel requests that will be sent per partition of your job to the machine learning service. Default is 1. </param>
/// <param name="inputRequestName"> Label for the input request object. </param>
/// <param name="outputResponseName"> Label for the output request object. </param>
internal MachineLearningServiceFunctionBinding(string functionBindingType, string endpoint, string apiKey, IList<MachineLearningServiceInputColumn> inputs, IList<MachineLearningServiceOutputColumn> outputs, int? batchSize, int? numberOfParallelRequests, string inputRequestName, string outputResponseName) : base(functionBindingType)
{
Endpoint = endpoint;
ApiKey = apiKey;
Inputs = inputs;
Outputs = outputs;
BatchSize = batchSize;
NumberOfParallelRequests = numberOfParallelRequests;
InputRequestName = inputRequestName;
OutputResponseName = outputResponseName;
FunctionBindingType = functionBindingType ?? "Microsoft.MachineLearningServices";
}
/// <summary> The Request-Response execute endpoint of the Azure Machine Learning web service. </summary>
public string Endpoint { get; set; }
/// <summary> The API key used to authenticate with Request-Response endpoint. </summary>
public string ApiKey { get; set; }
/// <summary> The inputs for the Azure Machine Learning web service endpoint. </summary>
public IList<MachineLearningServiceInputColumn> Inputs { get; }
/// <summary> A list of outputs from the Azure Machine Learning web service endpoint execution. </summary>
public IList<MachineLearningServiceOutputColumn> Outputs { get; }
/// <summary> Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000. </summary>
public int? BatchSize { get; set; }
/// <summary> The number of parallel requests that will be sent per partition of your job to the machine learning service. Default is 1. </summary>
public int? NumberOfParallelRequests { get; set; }
/// <summary> Label for the input request object. </summary>
public string InputRequestName { get; set; }
/// <summary> Label for the output request object. </summary>
public string OutputResponseName { get; set; }
}
}