| | 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> Notebook root-level metadata. </summary> |
| | 15 | | public partial class NotebookMetadata : IDictionary<string, object> |
| | 16 | | { |
| | 17 | | /// <summary> Initializes a new instance of NotebookMetadata. </summary> |
| 0 | 18 | | public NotebookMetadata() |
| | 19 | | { |
| 0 | 20 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 21 | | } |
| | 22 | |
|
| | 23 | | /// <summary> Initializes a new instance of NotebookMetadata. </summary> |
| | 24 | | /// <param name="kernelspec"> Kernel information. </param> |
| | 25 | | /// <param name="languageInfo"> Language info. </param> |
| | 26 | | /// <param name="additionalProperties"> . </param> |
| 24 | 27 | | internal NotebookMetadata(NotebookKernelSpec kernelspec, NotebookLanguageInfo languageInfo, IDictionary<string, |
| | 28 | | { |
| 24 | 29 | | Kernelspec = kernelspec; |
| 24 | 30 | | LanguageInfo = languageInfo; |
| 24 | 31 | | AdditionalProperties = additionalProperties; |
| 24 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Kernel information. </summary> |
| 0 | 35 | | public NotebookKernelSpec Kernelspec { get; set; } |
| | 36 | | /// <summary> Language info. </summary> |
| 0 | 37 | | public NotebookLanguageInfo LanguageInfo { get; set; } |
| 0 | 38 | | internal IDictionary<string, object> AdditionalProperties { get; } |
| | 39 | | /// <inheritdoc /> |
| 0 | 40 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 41 | | /// <inheritdoc /> |
| 0 | 42 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 43 | | /// <inheritdoc /> |
| 0 | 44 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | 45 | | /// <inheritdoc /> |
| 0 | 46 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | 47 | | /// <inheritdoc /> |
| 0 | 48 | | public ICollection<string> Keys => AdditionalProperties.Keys; |
| | 49 | | /// <inheritdoc /> |
| 0 | 50 | | public ICollection<object> Values => AdditionalProperties.Values; |
| | 51 | | /// <inheritdoc /> |
| 0 | 52 | | int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | 53 | | /// <inheritdoc /> |
| 0 | 54 | | public void Add(string key, object value) => AdditionalProperties.Add(key, value); |
| | 55 | | /// <inheritdoc /> |
| 0 | 56 | | public bool Remove(string key) => AdditionalProperties.Remove(key); |
| | 57 | | /// <inheritdoc /> |
| 0 | 58 | | bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly; |
| | 59 | | /// <inheritdoc /> |
| 0 | 60 | | void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A |
| | 61 | | /// <inheritdoc /> |
| 0 | 62 | | bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie |
| | 63 | | /// <inheritdoc /> |
| 0 | 64 | | bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert |
| | 65 | | /// <inheritdoc /> |
| 0 | 66 | | void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) => |
| | 67 | | /// <inheritdoc /> |
| 0 | 68 | | void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear(); |
| | 69 | | /// <inheritdoc /> |
| | 70 | | public object this[string key] |
| | 71 | | { |
| 0 | 72 | | get => AdditionalProperties[key]; |
| 0 | 73 | | set => AdditionalProperties[key] = value; |
| | 74 | | } |
| | 75 | | } |
| | 76 | | } |