public NotebookKernelSpec ToSdkObject() { var notebookKernelSpec = new NotebookKernelSpec(this.Name, this.DisplayName); this.AdditionalProperties?.ForEach(item => notebookKernelSpec.Add(item.Key, item.Value)); return(notebookKernelSpec); }
public PSNotebookKernelSpec(NotebookKernelSpec notebookKernelSpec) { this.Name = notebookKernelSpec?.Name; this.DisplayName = notebookKernelSpec?.DisplayName; var propertiesEnum = notebookKernelSpec?.GetEnumerator(); if (propertiesEnum != null) { this.AdditionalProperties = new Dictionary <string, object>(); while (propertiesEnum.MoveNext()) { this.AdditionalProperties.Add(propertiesEnum.Current); } } }
public PSNotebookKernelSpec(NotebookKernelSpec notebookKernelSpec) { this.Name = notebookKernelSpec?.Name; this.DisplayName = notebookKernelSpec?.DisplayName; this.AdditionalProperties = notebookKernelSpec?.AdditionalProperties; }