-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
Trigger.cs
52 lines (46 loc) · 2.76 KB
/
Trigger.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary>
/// Azure Synapse nested object which contains information about creating pipeline run
/// Please note <see cref="Trigger"/> 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="BlobEventsTrigger"/>, <see cref="BlobTrigger"/>, <see cref="ChainingTrigger"/>, <see cref="CustomEventsTrigger"/>, <see cref="MultiplePipelineTrigger"/>, <see cref="RerunTumblingWindowTrigger"/>, <see cref="ScheduleTrigger"/> and <see cref="TumblingWindowTrigger"/>.
/// </summary>
public abstract partial class Trigger
{
/// <summary> Initializes a new instance of <see cref="Trigger"/>. </summary>
protected Trigger()
{
Annotations = new ChangeTrackingList<object>();
AdditionalProperties = new ChangeTrackingDictionary<string, object>();
}
/// <summary> Initializes a new instance of <see cref="Trigger"/>. </summary>
/// <param name="type"> Trigger type. </param>
/// <param name="description"> Trigger description. </param>
/// <param name="runtimeState"> Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. </param>
/// <param name="annotations"> List of tags that can be used for describing the trigger. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
internal Trigger(string type, string description, TriggerRuntimeState? runtimeState, IList<object> annotations, IDictionary<string, object> additionalProperties)
{
Type = type;
Description = description;
RuntimeState = runtimeState;
Annotations = annotations;
AdditionalProperties = additionalProperties;
}
/// <summary> Trigger type. </summary>
internal string Type { get; set; }
/// <summary> Trigger description. </summary>
public string Description { get; set; }
/// <summary> Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. </summary>
public TriggerRuntimeState? RuntimeState { get; }
/// <summary> List of tags that can be used for describing the trigger. </summary>
public IList<object> Annotations { get; }
/// <summary> Additional Properties. </summary>
public IDictionary<string, object> AdditionalProperties { get; }
}
}