| | 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> Kernel information. </summary> |
| | 16 | | public partial class NotebookKernelSpec : IDictionary<string, object> |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of NotebookKernelSpec. </summary> |
| | 19 | | /// <param name="name"> Name of the kernel specification. </param> |
| | 20 | | /// <param name="displayName"> Name to display in UI. </param> |
| | 21 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="displayName"/> is null. |
| 0 | 22 | | public NotebookKernelSpec(string name, string displayName) |
| | 23 | | { |
| 0 | 24 | | if (name == null) |
| | 25 | | { |
| 0 | 26 | | throw new ArgumentNullException(nameof(name)); |
| | 27 | | } |
| 0 | 28 | | if (displayName == null) |
| | 29 | | { |
| 0 | 30 | | throw new ArgumentNullException(nameof(displayName)); |
| | 31 | | } |
| | 32 | |
|
| 0 | 33 | | Name = name; |
| 0 | 34 | | DisplayName = displayName; |
| 0 | 35 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> Initializes a new instance of NotebookKernelSpec. </summary> |
| | 39 | | /// <param name="name"> Name of the kernel specification. </param> |
| | 40 | | /// <param name="displayName"> Name to display in UI. </param> |
| | 41 | | /// <param name="additionalProperties"> . </param> |
| 0 | 42 | | internal NotebookKernelSpec(string name, string displayName, IDictionary<string, object> additionalProperties) |
| | 43 | | { |
| 0 | 44 | | Name = name; |
| 0 | 45 | | DisplayName = displayName; |
| 0 | 46 | | AdditionalProperties = additionalProperties; |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> Name of the kernel specification. </summary> |
| 0 | 50 | | public string Name { get; set; } |
| | 51 | | /// <summary> Name to display in UI. </summary> |
| 0 | 52 | | public string DisplayName { 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 | | } |