| | 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> Trigger runs. </summary> |
| | 16 | | public partial class TriggerRun : IReadOnlyDictionary<string, object> |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of TriggerRun. </summary> |
| 0 | 19 | | internal TriggerRun() |
| | 20 | | { |
| 0 | 21 | | Properties = new ChangeTrackingDictionary<string, string>(); |
| 0 | 22 | | TriggeredPipelines = new ChangeTrackingDictionary<string, string>(); |
| 0 | 23 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> Initializes a new instance of TriggerRun. </summary> |
| | 27 | | /// <param name="triggerRunId"> Trigger run id. </param> |
| | 28 | | /// <param name="triggerName"> Trigger name. </param> |
| | 29 | | /// <param name="triggerType"> Trigger type. </param> |
| | 30 | | /// <param name="triggerRunTimestamp"> Trigger run start time. </param> |
| | 31 | | /// <param name="status"> Trigger run status. </param> |
| | 32 | | /// <param name="message"> Trigger error message. </param> |
| | 33 | | /// <param name="properties"> List of property name and value related to trigger run. Name, value pair depends o |
| | 34 | | /// <param name="triggeredPipelines"> List of pipeline name and run Id triggered by the trigger run. </param> |
| | 35 | | /// <param name="additionalProperties"> . </param> |
| 0 | 36 | | internal TriggerRun(string triggerRunId, string triggerName, string triggerType, DateTimeOffset? triggerRunTimes |
| | 37 | | { |
| 0 | 38 | | TriggerRunId = triggerRunId; |
| 0 | 39 | | TriggerName = triggerName; |
| 0 | 40 | | TriggerType = triggerType; |
| 0 | 41 | | TriggerRunTimestamp = triggerRunTimestamp; |
| 0 | 42 | | Status = status; |
| 0 | 43 | | Message = message; |
| 0 | 44 | | Properties = properties; |
| 0 | 45 | | TriggeredPipelines = triggeredPipelines; |
| 0 | 46 | | AdditionalProperties = additionalProperties; |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> Trigger run id. </summary> |
| 0 | 50 | | public string TriggerRunId { get; } |
| | 51 | | /// <summary> Trigger name. </summary> |
| 0 | 52 | | public string TriggerName { get; } |
| | 53 | | /// <summary> Trigger type. </summary> |
| 0 | 54 | | public string TriggerType { get; } |
| | 55 | | /// <summary> Trigger run start time. </summary> |
| 0 | 56 | | public DateTimeOffset? TriggerRunTimestamp { get; } |
| | 57 | | /// <summary> Trigger run status. </summary> |
| 0 | 58 | | public TriggerRunStatus? Status { get; } |
| | 59 | | /// <summary> Trigger error message. </summary> |
| 0 | 60 | | public string Message { get; } |
| | 61 | | /// <summary> List of property name and value related to trigger run. Name, value pair depends on type of trigge |
| 0 | 62 | | public IReadOnlyDictionary<string, string> Properties { get; } |
| | 63 | | /// <summary> List of pipeline name and run Id triggered by the trigger run. </summary> |
| 0 | 64 | | public IReadOnlyDictionary<string, string> TriggeredPipelines { get; } |
| 0 | 65 | | internal IReadOnlyDictionary<string, object> AdditionalProperties { get; } |
| | 66 | | /// <inheritdoc /> |
| 0 | 67 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 68 | | /// <inheritdoc /> |
| 0 | 69 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 70 | | /// <inheritdoc /> |
| 0 | 71 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | 72 | | /// <inheritdoc /> |
| 0 | 73 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | 74 | | /// <inheritdoc /> |
| 0 | 75 | | public IEnumerable<string> Keys => AdditionalProperties.Keys; |
| | 76 | | /// <inheritdoc /> |
| 0 | 77 | | public IEnumerable<object> Values => AdditionalProperties.Values; |
| | 78 | | /// <inheritdoc /> |
| 0 | 79 | | int IReadOnlyCollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | 80 | | /// <inheritdoc /> |
| | 81 | | public object this[string key] |
| | 82 | | { |
| 0 | 83 | | get => AdditionalProperties[key]; |
| | 84 | | } |
| | 85 | | } |
| | 86 | | } |