| | | 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 System.Linq; |
| | | 12 | | using Azure.Core; |
| | | 13 | | |
| | | 14 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | | 15 | | { |
| | | 16 | | /// <summary> Activity dependency information. </summary> |
| | | 17 | | public partial class ActivityDependency : IDictionary<string, object> |
| | | 18 | | { |
| | | 19 | | /// <summary> Initializes a new instance of ActivityDependency. </summary> |
| | | 20 | | /// <param name="activity"> Activity name. </param> |
| | | 21 | | /// <param name="dependencyConditions"> Match-Condition for the dependency. </param> |
| | | 22 | | /// <exception cref="ArgumentNullException"> <paramref name="activity"/> or <paramref name="dependencyConditions |
| | 0 | 23 | | public ActivityDependency(string activity, IEnumerable<DependencyCondition> dependencyConditions) |
| | | 24 | | { |
| | 0 | 25 | | if (activity == null) |
| | | 26 | | { |
| | 0 | 27 | | throw new ArgumentNullException(nameof(activity)); |
| | | 28 | | } |
| | 0 | 29 | | if (dependencyConditions == null) |
| | | 30 | | { |
| | 0 | 31 | | throw new ArgumentNullException(nameof(dependencyConditions)); |
| | | 32 | | } |
| | | 33 | | |
| | 0 | 34 | | Activity = activity; |
| | 0 | 35 | | DependencyConditions = dependencyConditions.ToList(); |
| | 0 | 36 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| | 0 | 37 | | } |
| | | 38 | | |
| | | 39 | | /// <summary> Initializes a new instance of ActivityDependency. </summary> |
| | | 40 | | /// <param name="activity"> Activity name. </param> |
| | | 41 | | /// <param name="dependencyConditions"> Match-Condition for the dependency. </param> |
| | | 42 | | /// <param name="additionalProperties"> . </param> |
| | 0 | 43 | | internal ActivityDependency(string activity, IList<DependencyCondition> dependencyConditions, IDictionary<string |
| | | 44 | | { |
| | 0 | 45 | | Activity = activity; |
| | 0 | 46 | | DependencyConditions = dependencyConditions; |
| | 0 | 47 | | AdditionalProperties = additionalProperties; |
| | 0 | 48 | | } |
| | | 49 | | |
| | | 50 | | /// <summary> Activity name. </summary> |
| | 0 | 51 | | public string Activity { get; set; } |
| | | 52 | | /// <summary> Match-Condition for the dependency. </summary> |
| | 0 | 53 | | public IList<DependencyCondition> DependencyConditions { get; } |
| | 0 | 54 | | internal IDictionary<string, object> AdditionalProperties { get; } |
| | | 55 | | /// <inheritdoc /> |
| | 0 | 56 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | | 57 | | /// <inheritdoc /> |
| | 0 | 58 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | | 59 | | /// <inheritdoc /> |
| | 0 | 60 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | | 61 | | /// <inheritdoc /> |
| | 0 | 62 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | | 63 | | /// <inheritdoc /> |
| | 0 | 64 | | public ICollection<string> Keys => AdditionalProperties.Keys; |
| | | 65 | | /// <inheritdoc /> |
| | 0 | 66 | | public ICollection<object> Values => AdditionalProperties.Values; |
| | | 67 | | /// <inheritdoc /> |
| | 0 | 68 | | int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | | 69 | | /// <inheritdoc /> |
| | 0 | 70 | | public void Add(string key, object value) => AdditionalProperties.Add(key, value); |
| | | 71 | | /// <inheritdoc /> |
| | 0 | 72 | | public bool Remove(string key) => AdditionalProperties.Remove(key); |
| | | 73 | | /// <inheritdoc /> |
| | 0 | 74 | | bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly; |
| | | 75 | | /// <inheritdoc /> |
| | 0 | 76 | | void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A |
| | | 77 | | /// <inheritdoc /> |
| | 0 | 78 | | bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie |
| | | 79 | | /// <inheritdoc /> |
| | 0 | 80 | | bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert |
| | | 81 | | /// <inheritdoc /> |
| | 0 | 82 | | void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) => |
| | | 83 | | /// <inheritdoc /> |
| | 0 | 84 | | void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear(); |
| | | 85 | | /// <inheritdoc /> |
| | | 86 | | public object this[string key] |
| | | 87 | | { |
| | 0 | 88 | | get => AdditionalProperties[key]; |
| | 0 | 89 | | set => AdditionalProperties[key] = value; |
| | | 90 | | } |
| | | 91 | | } |
| | | 92 | | } |