| | 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.Collections; |
| | 9 | | using System.Collections.Generic; |
| | 10 | | using Azure.Core; |
| | 11 | |
|
| | 12 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | 13 | | { |
| | 14 | | /// <summary> Azure Synapse nested object which contains information about creating pipeline run. </summary> |
| | 15 | | public partial class Trigger : IDictionary<string, object> |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of Trigger. </summary> |
| 0 | 18 | | public Trigger() |
| | 19 | | { |
| 0 | 20 | | Annotations = new ChangeTrackingList<object>(); |
| 0 | 21 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 22 | | Type = "Trigger"; |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | /// <summary> Initializes a new instance of Trigger. </summary> |
| | 26 | | /// <param name="type"> Trigger type. </param> |
| | 27 | | /// <param name="description"> Trigger description. </param> |
| | 28 | | /// <param name="runtimeState"> Indicates if trigger is running or not. Updated when Start/Stop APIs are called |
| | 29 | | /// <param name="annotations"> List of tags that can be used for describing the trigger. </param> |
| | 30 | | /// <param name="additionalProperties"> . </param> |
| 0 | 31 | | internal Trigger(string type, string description, TriggerRuntimeState? runtimeState, IList<object> annotations, |
| | 32 | | { |
| 0 | 33 | | Type = type ?? "Trigger"; |
| 0 | 34 | | Description = description; |
| 0 | 35 | | RuntimeState = runtimeState; |
| 0 | 36 | | Annotations = annotations; |
| 0 | 37 | | AdditionalProperties = additionalProperties; |
| 0 | 38 | | } |
| | 39 | |
|
| | 40 | | /// <summary> Trigger type. </summary> |
| 0 | 41 | | internal string Type { get; set; } |
| | 42 | | /// <summary> Trigger description. </summary> |
| 0 | 43 | | public string Description { get; set; } |
| | 44 | | /// <summary> Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. </ |
| 0 | 45 | | public TriggerRuntimeState? RuntimeState { get; } |
| | 46 | | /// <summary> List of tags that can be used for describing the trigger. </summary> |
| 0 | 47 | | public IList<object> Annotations { get; } |
| 0 | 48 | | internal IDictionary<string, object> AdditionalProperties { get; } |
| | 49 | | /// <inheritdoc /> |
| 0 | 50 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 51 | | /// <inheritdoc /> |
| 0 | 52 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 53 | | /// <inheritdoc /> |
| 0 | 54 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | 55 | | /// <inheritdoc /> |
| 0 | 56 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | 57 | | /// <inheritdoc /> |
| 0 | 58 | | public ICollection<string> Keys => AdditionalProperties.Keys; |
| | 59 | | /// <inheritdoc /> |
| 0 | 60 | | public ICollection<object> Values => AdditionalProperties.Values; |
| | 61 | | /// <inheritdoc /> |
| 0 | 62 | | int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | 63 | | /// <inheritdoc /> |
| 0 | 64 | | public void Add(string key, object value) => AdditionalProperties.Add(key, value); |
| | 65 | | /// <inheritdoc /> |
| 0 | 66 | | public bool Remove(string key) => AdditionalProperties.Remove(key); |
| | 67 | | /// <inheritdoc /> |
| 0 | 68 | | bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly; |
| | 69 | | /// <inheritdoc /> |
| 0 | 70 | | void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A |
| | 71 | | /// <inheritdoc /> |
| 0 | 72 | | bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie |
| | 73 | | /// <inheritdoc /> |
| 0 | 74 | | bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert |
| | 75 | | /// <inheritdoc /> |
| 0 | 76 | | void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) => |
| | 77 | | /// <inheritdoc /> |
| 0 | 78 | | void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear(); |
| | 79 | | /// <inheritdoc /> |
| | 80 | | public object this[string key] |
| | 81 | | { |
| 0 | 82 | | get => AdditionalProperties[key]; |
| 0 | 83 | | set => AdditionalProperties[key] = value; |
| | 84 | | } |
| | 85 | | } |
| | 86 | | } |