| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Collections; |
| | 10 | | using System.Collections.Generic; |
| | 11 | | using Azure.Core; |
| | 12 | |
|
| | 13 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | 14 | | { |
| | 15 | | /// <summary> Information about an activity run in a pipeline. </summary> |
| | 16 | | public partial class ActivityRun : IReadOnlyDictionary<string, object> |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of ActivityRun. </summary> |
| 0 | 19 | | internal ActivityRun() |
| | 20 | | { |
| 0 | 21 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 22 | | } |
| | 23 | |
|
| | 24 | | /// <summary> Initializes a new instance of ActivityRun. </summary> |
| | 25 | | /// <param name="pipelineName"> The name of the pipeline. </param> |
| | 26 | | /// <param name="pipelineRunId"> The id of the pipeline run. </param> |
| | 27 | | /// <param name="activityName"> The name of the activity. </param> |
| | 28 | | /// <param name="activityType"> The type of the activity. </param> |
| | 29 | | /// <param name="activityRunId"> The id of the activity run. </param> |
| | 30 | | /// <param name="linkedServiceName"> The name of the compute linked service. </param> |
| | 31 | | /// <param name="status"> The status of the activity run. </param> |
| | 32 | | /// <param name="activityRunStart"> The start time of the activity run in 'ISO 8601' format. </param> |
| | 33 | | /// <param name="activityRunEnd"> The end time of the activity run in 'ISO 8601' format. </param> |
| | 34 | | /// <param name="durationInMs"> The duration of the activity run. </param> |
| | 35 | | /// <param name="input"> The input for the activity. </param> |
| | 36 | | /// <param name="output"> The output for the activity. </param> |
| | 37 | | /// <param name="error"> The error if any from the activity run. </param> |
| | 38 | | /// <param name="additionalProperties"> . </param> |
| 0 | 39 | | internal ActivityRun(string pipelineName, string pipelineRunId, string activityName, string activityType, string |
| | 40 | | { |
| 0 | 41 | | PipelineName = pipelineName; |
| 0 | 42 | | PipelineRunId = pipelineRunId; |
| 0 | 43 | | ActivityName = activityName; |
| 0 | 44 | | ActivityType = activityType; |
| 0 | 45 | | ActivityRunId = activityRunId; |
| 0 | 46 | | LinkedServiceName = linkedServiceName; |
| 0 | 47 | | Status = status; |
| 0 | 48 | | ActivityRunStart = activityRunStart; |
| 0 | 49 | | ActivityRunEnd = activityRunEnd; |
| 0 | 50 | | DurationInMs = durationInMs; |
| 0 | 51 | | Input = input; |
| 0 | 52 | | Output = output; |
| 0 | 53 | | Error = error; |
| 0 | 54 | | AdditionalProperties = additionalProperties; |
| 0 | 55 | | } |
| | 56 | |
|
| | 57 | | /// <summary> The name of the pipeline. </summary> |
| 0 | 58 | | public string PipelineName { get; } |
| | 59 | | /// <summary> The id of the pipeline run. </summary> |
| 0 | 60 | | public string PipelineRunId { get; } |
| | 61 | | /// <summary> The name of the activity. </summary> |
| 0 | 62 | | public string ActivityName { get; } |
| | 63 | | /// <summary> The type of the activity. </summary> |
| 0 | 64 | | public string ActivityType { get; } |
| | 65 | | /// <summary> The id of the activity run. </summary> |
| 0 | 66 | | public string ActivityRunId { get; } |
| | 67 | | /// <summary> The name of the compute linked service. </summary> |
| 0 | 68 | | public string LinkedServiceName { get; } |
| | 69 | | /// <summary> The status of the activity run. </summary> |
| 0 | 70 | | public string Status { get; } |
| | 71 | | /// <summary> The start time of the activity run in 'ISO 8601' format. </summary> |
| 0 | 72 | | public DateTimeOffset? ActivityRunStart { get; } |
| | 73 | | /// <summary> The end time of the activity run in 'ISO 8601' format. </summary> |
| 0 | 74 | | public DateTimeOffset? ActivityRunEnd { get; } |
| | 75 | | /// <summary> The duration of the activity run. </summary> |
| 0 | 76 | | public int? DurationInMs { get; } |
| | 77 | | /// <summary> The input for the activity. </summary> |
| 0 | 78 | | public object Input { get; } |
| | 79 | | /// <summary> The output for the activity. </summary> |
| 0 | 80 | | public object Output { get; } |
| | 81 | | /// <summary> The error if any from the activity run. </summary> |
| 0 | 82 | | public object Error { get; } |
| 0 | 83 | | internal IReadOnlyDictionary<string, object> AdditionalProperties { get; } |
| | 84 | | /// <inheritdoc /> |
| 0 | 85 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 86 | | /// <inheritdoc /> |
| 0 | 87 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 88 | | /// <inheritdoc /> |
| 0 | 89 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | 90 | | /// <inheritdoc /> |
| 0 | 91 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | 92 | | /// <inheritdoc /> |
| 0 | 93 | | public IEnumerable<string> Keys => AdditionalProperties.Keys; |
| | 94 | | /// <inheritdoc /> |
| 0 | 95 | | public IEnumerable<object> Values => AdditionalProperties.Values; |
| | 96 | | /// <inheritdoc /> |
| 0 | 97 | | int IReadOnlyCollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | 98 | | /// <inheritdoc /> |
| | 99 | | public object this[string key] |
| | 100 | | { |
| 0 | 101 | | get => AdditionalProperties[key]; |
| | 102 | | } |
| | 103 | | } |
| | 104 | | } |