-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RunNotebookSnapshot.cs
72 lines (65 loc) · 3.36 KB
/
RunNotebookSnapshot.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> Run notebook snapshot. </summary>
public partial class RunNotebookSnapshot
{
/// <summary> Initializes a new instance of <see cref="RunNotebookSnapshot"/>. </summary>
/// <param name="id"> Run notebook runId. </param>
/// <param name="notebook"> Notebook name. </param>
/// <exception cref="ArgumentNullException"> <paramref name="id"/> or <paramref name="notebook"/> is null. </exception>
internal RunNotebookSnapshot(string id, string notebook)
{
Argument.AssertNotNull(id, nameof(id));
Argument.AssertNotNull(notebook, nameof(notebook));
Id = id;
Notebook = notebook;
Parameters = new ChangeTrackingDictionary<string, RunNotebookParameter>();
}
/// <summary> Initializes a new instance of <see cref="RunNotebookSnapshot"/>. </summary>
/// <param name="exitValue"> Output of exit command. </param>
/// <param name="id"> Run notebook runId. </param>
/// <param name="notebook"> Notebook name. </param>
/// <param name="sessionOptions"> Session properties. </param>
/// <param name="honorSessionTimeToLive"> Whether session should run till time to live after run completes. </param>
/// <param name="sessionId"> Livy session id. </param>
/// <param name="sparkPool"> SparkPool name. </param>
/// <param name="parameters"> Run notebook parameters. </param>
/// <param name="notebookContent"> Notebook resource type. </param>
internal RunNotebookSnapshot(string exitValue, string id, string notebook, RunNotebookSparkSessionOptions sessionOptions, bool? honorSessionTimeToLive, string sessionId, string sparkPool, IReadOnlyDictionary<string, RunNotebookParameter> parameters, NotebookResource notebookContent)
{
ExitValue = exitValue;
Id = id;
Notebook = notebook;
SessionOptions = sessionOptions;
HonorSessionTimeToLive = honorSessionTimeToLive;
SessionId = sessionId;
SparkPool = sparkPool;
Parameters = parameters;
NotebookContent = notebookContent;
}
/// <summary> Output of exit command. </summary>
public string ExitValue { get; }
/// <summary> Run notebook runId. </summary>
public string Id { get; }
/// <summary> Notebook name. </summary>
public string Notebook { get; }
/// <summary> Session properties. </summary>
public RunNotebookSparkSessionOptions SessionOptions { get; }
/// <summary> Whether session should run till time to live after run completes. </summary>
public bool? HonorSessionTimeToLive { get; }
/// <summary> Livy session id. </summary>
public string SessionId { get; }
/// <summary> SparkPool name. </summary>
public string SparkPool { get; }
/// <summary> Run notebook parameters. </summary>
public IReadOnlyDictionary<string, RunNotebookParameter> Parameters { get; }
/// <summary> Notebook resource type. </summary>
public NotebookResource NotebookContent { get; }
}
}