-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
ControlActivity.cs
49 lines (42 loc) · 3.04 KB
/
ControlActivity.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.DataFactory.Models
{
/// <summary>
/// Base class for all control activities like IfCondition, ForEach , Until.
/// Please note <see cref="ControlActivity"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="AppendVariableActivity"/>, <see cref="ExecutePipelineActivity"/>, <see cref="FailActivity"/>, <see cref="FilterActivity"/>, <see cref="ForEachActivity"/>, <see cref="IfConditionActivity"/>, <see cref="SetVariableActivity"/>, <see cref="SwitchActivity"/>, <see cref="UntilActivity"/>, <see cref="ValidationActivity"/>, <see cref="WaitActivity"/> and <see cref="WebHookActivity"/>.
/// </summary>
public partial class ControlActivity : PipelineActivity
{
/// <summary> Initializes a new instance of <see cref="ControlActivity"/>. </summary>
/// <param name="name"> Activity name. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
public ControlActivity(string name) : base(name)
{
Argument.AssertNotNull(name, nameof(name));
ActivityType = "Container";
}
/// <summary> Initializes a new instance of <see cref="ControlActivity"/>. </summary>
/// <param name="name"> Activity name. </param>
/// <param name="activityType"> 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>
internal ControlActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList<PipelineActivityDependency> dependsOn, IList<PipelineActivityUserProperty> userProperties, IDictionary<string, BinaryData> additionalProperties) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties)
{
ActivityType = activityType ?? "Container";
}
/// <summary> Initializes a new instance of <see cref="ControlActivity"/> for deserialization. </summary>
internal ControlActivity()
{
}
}
}