| | 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> Data flow reference type. </summary> |
| | 16 | | public partial class DataFlowReference : IDictionary<string, object> |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of DataFlowReference. </summary> |
| | 19 | | /// <param name="type"> Data flow reference type. </param> |
| | 20 | | /// <param name="referenceName"> Reference data flow name. </param> |
| | 21 | | /// <exception cref="ArgumentNullException"> <paramref name="referenceName"/> is null. </exception> |
| 0 | 22 | | public DataFlowReference(DataFlowReferenceType type, string referenceName) |
| | 23 | | { |
| 0 | 24 | | if (referenceName == null) |
| | 25 | | { |
| 0 | 26 | | throw new ArgumentNullException(nameof(referenceName)); |
| | 27 | | } |
| | 28 | |
|
| 0 | 29 | | Type = type; |
| 0 | 30 | | ReferenceName = referenceName; |
| 0 | 31 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Initializes a new instance of DataFlowReference. </summary> |
| | 35 | | /// <param name="type"> Data flow reference type. </param> |
| | 36 | | /// <param name="referenceName"> Reference data flow name. </param> |
| | 37 | | /// <param name="datasetParameters"> Reference data flow parameters from dataset. </param> |
| | 38 | | /// <param name="additionalProperties"> . </param> |
| 0 | 39 | | internal DataFlowReference(DataFlowReferenceType type, string referenceName, object datasetParameters, IDictiona |
| | 40 | | { |
| 0 | 41 | | Type = type; |
| 0 | 42 | | ReferenceName = referenceName; |
| 0 | 43 | | DatasetParameters = datasetParameters; |
| 0 | 44 | | AdditionalProperties = additionalProperties; |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> Data flow reference type. </summary> |
| 0 | 48 | | public DataFlowReferenceType Type { get; set; } |
| | 49 | | /// <summary> Reference data flow name. </summary> |
| 0 | 50 | | public string ReferenceName { get; set; } |
| | 51 | | /// <summary> Reference data flow parameters from dataset. </summary> |
| 0 | 52 | | public object DatasetParameters { get; set; } |
| 0 | 53 | | internal IDictionary<string, object> AdditionalProperties { get; } |
| | 54 | | /// <inheritdoc /> |
| 0 | 55 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 56 | | /// <inheritdoc /> |
| 0 | 57 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 58 | | /// <inheritdoc /> |
| 0 | 59 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | 60 | | /// <inheritdoc /> |
| 0 | 61 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | 62 | | /// <inheritdoc /> |
| 0 | 63 | | public ICollection<string> Keys => AdditionalProperties.Keys; |
| | 64 | | /// <inheritdoc /> |
| 0 | 65 | | public ICollection<object> Values => AdditionalProperties.Values; |
| | 66 | | /// <inheritdoc /> |
| 0 | 67 | | int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | 68 | | /// <inheritdoc /> |
| 0 | 69 | | public void Add(string key, object value) => AdditionalProperties.Add(key, value); |
| | 70 | | /// <inheritdoc /> |
| 0 | 71 | | public bool Remove(string key) => AdditionalProperties.Remove(key); |
| | 72 | | /// <inheritdoc /> |
| 0 | 73 | | bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly; |
| | 74 | | /// <inheritdoc /> |
| 0 | 75 | | void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A |
| | 76 | | /// <inheritdoc /> |
| 0 | 77 | | bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie |
| | 78 | | /// <inheritdoc /> |
| 0 | 79 | | bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert |
| | 80 | | /// <inheritdoc /> |
| 0 | 81 | | void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) => |
| | 82 | | /// <inheritdoc /> |
| 0 | 83 | | void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear(); |
| | 84 | | /// <inheritdoc /> |
| | 85 | | public object this[string key] |
| | 86 | | { |
| 0 | 87 | | get => AdditionalProperties[key]; |
| 0 | 88 | | set => AdditionalProperties[key] = value; |
| | 89 | | } |
| | 90 | | } |
| | 91 | | } |