-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RuntimeScriptActionDetail.cs
70 lines (63 loc) · 3.92 KB
/
RuntimeScriptActionDetail.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
// 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.ResourceManager.HDInsight.Models
{
/// <summary> The execution details of a script action. </summary>
public partial class RuntimeScriptActionDetail : RuntimeScriptAction
{
/// <summary> Initializes a new instance of <see cref="RuntimeScriptActionDetail"/>. </summary>
/// <param name="name"> The name of the script action. </param>
/// <param name="uri"> The URI to the script. </param>
/// <param name="roles"> The list of roles where script will be executed. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/>, <paramref name="uri"/> or <paramref name="roles"/> is null. </exception>
public RuntimeScriptActionDetail(string name, Uri uri, IEnumerable<string> roles) : base(name, uri, roles)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(uri, nameof(uri));
Argument.AssertNotNull(roles, nameof(roles));
ExecutionSummary = new ChangeTrackingList<ScriptActionExecutionSummary>();
}
/// <summary> Initializes a new instance of <see cref="RuntimeScriptActionDetail"/>. </summary>
/// <param name="name"> The name of the script action. </param>
/// <param name="uri"> The URI to the script. </param>
/// <param name="parameters"> The parameters for the script. </param>
/// <param name="roles"> The list of roles where script will be executed. </param>
/// <param name="applicationName"> The application name of the script action, if any. </param>
/// <param name="scriptExecutionId"> The execution id of the script action. </param>
/// <param name="startOn"> The start time of script action execution. </param>
/// <param name="endOn"> The end time of script action execution. </param>
/// <param name="status"> The current execution status of the script action. </param>
/// <param name="operation"> The reason why the script action was executed. </param>
/// <param name="executionSummary"> The summary of script action execution result. </param>
/// <param name="debugInformation"> The script action execution debug information. </param>
internal RuntimeScriptActionDetail(string name, Uri uri, string parameters, IList<string> roles, string applicationName, long? scriptExecutionId, DateTimeOffset? startOn, DateTimeOffset? endOn, string status, string operation, IReadOnlyList<ScriptActionExecutionSummary> executionSummary, string debugInformation) : base(name, uri, parameters, roles, applicationName)
{
ScriptExecutionId = scriptExecutionId;
StartOn = startOn;
EndOn = endOn;
Status = status;
Operation = operation;
ExecutionSummary = executionSummary;
DebugInformation = debugInformation;
}
/// <summary> The execution id of the script action. </summary>
public long? ScriptExecutionId { get; }
/// <summary> The start time of script action execution. </summary>
public DateTimeOffset? StartOn { get; }
/// <summary> The end time of script action execution. </summary>
public DateTimeOffset? EndOn { get; }
/// <summary> The current execution status of the script action. </summary>
public string Status { get; }
/// <summary> The reason why the script action was executed. </summary>
public string Operation { get; }
/// <summary> The summary of script action execution result. </summary>
public IReadOnlyList<ScriptActionExecutionSummary> ExecutionSummary { get; }
/// <summary> The script action execution debug information. </summary>
public string DebugInformation { get; }
}
}