/
AzureMLUpdateResourceActivity.cs
65 lines (58 loc) · 5.23 KB
/
AzureMLUpdateResourceActivity.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
// 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;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Azure ML Update Resource management activity. </summary>
public partial class AzureMLUpdateResourceActivity : ExecutionActivity
{
/// <summary> Initializes a new instance of AzureMLUpdateResourceActivity. </summary>
/// <param name="name"> Activity name. </param>
/// <param name="trainedModelName"> Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). </param>
/// <param name="trainedModelLinkedServiceName"> Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. </param>
/// <param name="trainedModelFilePath"> The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType string). </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/>, <paramref name="trainedModelName"/>, <paramref name="trainedModelLinkedServiceName"/> or <paramref name="trainedModelFilePath"/> is null. </exception>
public AzureMLUpdateResourceActivity(string name, object trainedModelName, LinkedServiceReference trainedModelLinkedServiceName, object trainedModelFilePath) : base(name)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(trainedModelName, nameof(trainedModelName));
Argument.AssertNotNull(trainedModelLinkedServiceName, nameof(trainedModelLinkedServiceName));
Argument.AssertNotNull(trainedModelFilePath, nameof(trainedModelFilePath));
TrainedModelName = trainedModelName;
TrainedModelLinkedServiceName = trainedModelLinkedServiceName;
TrainedModelFilePath = trainedModelFilePath;
Type = "AzureMLUpdateResource";
}
/// <summary> Initializes a new instance of AzureMLUpdateResourceActivity. </summary>
/// <param name="name"> Activity name. </param>
/// <param name="type"> Type of activity. </param>
/// <param name="description"> Activity description. </param>
/// <param name="state"> Activity state. This is an optional property and if not provided, the state will be Active by default. </param>
/// <param name="onInactiveMarkAs"> Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default. </param>
/// <param name="dependsOn"> Activity depends on condition. </param>
/// <param name="userProperties"> Activity user properties. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
/// <param name="linkedServiceName"> Linked service reference. </param>
/// <param name="policy"> Activity policy. </param>
/// <param name="trainedModelName"> Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). </param>
/// <param name="trainedModelLinkedServiceName"> Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. </param>
/// <param name="trainedModelFilePath"> The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType string). </param>
internal AzureMLUpdateResourceActivity(string name, string type, string description, ActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList<ActivityDependency> dependsOn, IList<UserProperty> userProperties, IDictionary<string, object> additionalProperties, LinkedServiceReference linkedServiceName, ActivityPolicy policy, object trainedModelName, LinkedServiceReference trainedModelLinkedServiceName, object trainedModelFilePath) : base(name, type, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy)
{
TrainedModelName = trainedModelName;
TrainedModelLinkedServiceName = trainedModelLinkedServiceName;
TrainedModelFilePath = trainedModelFilePath;
Type = type ?? "AzureMLUpdateResource";
}
/// <summary> Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). </summary>
public object TrainedModelName { get; set; }
/// <summary> Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. </summary>
public LinkedServiceReference TrainedModelLinkedServiceName { get; set; }
/// <summary> The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType string). </summary>
public object TrainedModelFilePath { get; set; }
}
}