-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
LogicWorkflowRunTrigger.cs
204 lines (197 loc) · 8.5 KB
/
LogicWorkflowRunTrigger.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.Logic.Models
{
/// <summary> The workflow run trigger. </summary>
public partial class LogicWorkflowRunTrigger
{
/// <summary> Initializes a new instance of <see cref="LogicWorkflowRunTrigger"/>. </summary>
internal LogicWorkflowRunTrigger()
{
}
/// <summary> Initializes a new instance of <see cref="LogicWorkflowRunTrigger"/>. </summary>
/// <param name="name"> Gets the name. </param>
/// <param name="inputs"> Gets the inputs. </param>
/// <param name="inputsLink"> Gets the link to inputs. </param>
/// <param name="outputs"> Gets the outputs. </param>
/// <param name="outputsLink"> Gets the link to outputs. </param>
/// <param name="scheduledOn"> Gets the scheduled time. </param>
/// <param name="startOn"> Gets the start time. </param>
/// <param name="endOn"> Gets the end time. </param>
/// <param name="trackingId"> Gets the tracking id. </param>
/// <param name="correlation"> The run correlation. </param>
/// <param name="code"> Gets the code. </param>
/// <param name="status"> Gets the status. </param>
/// <param name="error"> Gets the error. </param>
/// <param name="trackedProperties"> Gets the tracked properties. </param>
internal LogicWorkflowRunTrigger(string name, BinaryData inputs, LogicContentLink inputsLink, BinaryData outputs, LogicContentLink outputsLink, DateTimeOffset? scheduledOn, DateTimeOffset? startOn, DateTimeOffset? endOn, Guid? trackingId, Correlation correlation, string code, LogicWorkflowStatus? status, BinaryData error, BinaryData trackedProperties)
{
Name = name;
Inputs = inputs;
InputsLink = inputsLink;
Outputs = outputs;
OutputsLink = outputsLink;
ScheduledOn = scheduledOn;
StartOn = startOn;
EndOn = endOn;
TrackingId = trackingId;
Correlation = correlation;
Code = code;
Status = status;
Error = error;
TrackedProperties = trackedProperties;
}
/// <summary> Gets the name. </summary>
public string Name { get; }
/// <summary>
/// Gets the inputs.
/// <para>
/// To assign an object to this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
public BinaryData Inputs { get; }
/// <summary> Gets the link to inputs. </summary>
public LogicContentLink InputsLink { get; }
/// <summary>
/// Gets the outputs.
/// <para>
/// To assign an object to this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
public BinaryData Outputs { get; }
/// <summary> Gets the link to outputs. </summary>
public LogicContentLink OutputsLink { get; }
/// <summary> Gets the scheduled time. </summary>
public DateTimeOffset? ScheduledOn { get; }
/// <summary> Gets the start time. </summary>
public DateTimeOffset? StartOn { get; }
/// <summary> Gets the end time. </summary>
public DateTimeOffset? EndOn { get; }
/// <summary> Gets the tracking id. </summary>
public Guid? TrackingId { get; }
/// <summary> The run correlation. </summary>
internal Correlation Correlation { get; }
/// <summary> The client tracking id. </summary>
public string CorrelationClientTrackingId
{
get => Correlation?.ClientTrackingId;
}
/// <summary> Gets the code. </summary>
public string Code { get; }
/// <summary> Gets the status. </summary>
public LogicWorkflowStatus? Status { get; }
/// <summary>
/// Gets the error.
/// <para>
/// To assign an object to this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
public BinaryData Error { get; }
/// <summary>
/// Gets the tracked properties.
/// <para>
/// To assign an object to this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
public BinaryData TrackedProperties { get; }
}
}