|  |  | 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.Generic; | 
|  |  | 9 |  | using Azure.Core; | 
|  |  | 10 |  |  | 
|  |  | 11 |  | namespace Azure.Analytics.Synapse.Artifacts.Models | 
|  |  | 12 |  | { | 
|  |  | 13 |  |     /// <summary> The SparkBatchJob. </summary> | 
|  |  | 14 |  |     public partial class SparkBatchJob | 
|  |  | 15 |  |     { | 
|  |  | 16 |  |         /// <summary> Initializes a new instance of SparkBatchJob. </summary> | 
|  |  | 17 |  |         /// <param name="id"> The session Id. </param> | 
|  | 0 | 18 |  |         internal SparkBatchJob(int id) | 
|  |  | 19 |  |         { | 
|  | 0 | 20 |  |             Errors = new ChangeTrackingList<SparkServiceError>(); | 
|  | 0 | 21 |  |             Tags = new ChangeTrackingDictionary<string, string>(); | 
|  | 0 | 22 |  |             Id = id; | 
|  | 0 | 23 |  |             AppInfo = new ChangeTrackingDictionary<string, string>(); | 
|  | 0 | 24 |  |             LogLines = new ChangeTrackingList<string>(); | 
|  | 0 | 25 |  |         } | 
|  |  | 26 |  |  | 
|  |  | 27 |  |         /// <summary> Initializes a new instance of SparkBatchJob. </summary> | 
|  |  | 28 |  |         /// <param name="livyInfo"> . </param> | 
|  |  | 29 |  |         /// <param name="name"> The batch name. </param> | 
|  |  | 30 |  |         /// <param name="workspaceName"> The workspace name. </param> | 
|  |  | 31 |  |         /// <param name="sparkPoolName"> The Spark pool name. </param> | 
|  |  | 32 |  |         /// <param name="submitterName"> The submitter name. </param> | 
|  |  | 33 |  |         /// <param name="submitterId"> The submitter identifier. </param> | 
|  |  | 34 |  |         /// <param name="artifactId"> The artifact identifier. </param> | 
|  |  | 35 |  |         /// <param name="jobType"> The job type. </param> | 
|  |  | 36 |  |         /// <param name="result"> The Spark batch job result. </param> | 
|  |  | 37 |  |         /// <param name="scheduler"> The scheduler information. </param> | 
|  |  | 38 |  |         /// <param name="plugin"> The plugin information. </param> | 
|  |  | 39 |  |         /// <param name="errors"> The error information. </param> | 
|  |  | 40 |  |         /// <param name="tags"> The tags. </param> | 
|  |  | 41 |  |         /// <param name="id"> The session Id. </param> | 
|  |  | 42 |  |         /// <param name="appId"> The application id of this session. </param> | 
|  |  | 43 |  |         /// <param name="appInfo"> The detailed application info. </param> | 
|  |  | 44 |  |         /// <param name="state"> The batch state. </param> | 
|  |  | 45 |  |         /// <param name="logLines"> The log lines. </param> | 
|  | 0 | 46 |  |         internal SparkBatchJob(SparkBatchJobState livyInfo, string name, string workspaceName, string sparkPoolName, str | 
|  |  | 47 |  |         { | 
|  | 0 | 48 |  |             LivyInfo = livyInfo; | 
|  | 0 | 49 |  |             Name = name; | 
|  | 0 | 50 |  |             WorkspaceName = workspaceName; | 
|  | 0 | 51 |  |             SparkPoolName = sparkPoolName; | 
|  | 0 | 52 |  |             SubmitterName = submitterName; | 
|  | 0 | 53 |  |             SubmitterId = submitterId; | 
|  | 0 | 54 |  |             ArtifactId = artifactId; | 
|  | 0 | 55 |  |             JobType = jobType; | 
|  | 0 | 56 |  |             Result = result; | 
|  | 0 | 57 |  |             Scheduler = scheduler; | 
|  | 0 | 58 |  |             Plugin = plugin; | 
|  | 0 | 59 |  |             Errors = errors; | 
|  | 0 | 60 |  |             Tags = tags; | 
|  | 0 | 61 |  |             Id = id; | 
|  | 0 | 62 |  |             AppId = appId; | 
|  | 0 | 63 |  |             AppInfo = appInfo; | 
|  | 0 | 64 |  |             State = state; | 
|  | 0 | 65 |  |             LogLines = logLines; | 
|  | 0 | 66 |  |         } | 
|  |  | 67 |  |  | 
|  | 0 | 68 |  |         public SparkBatchJobState LivyInfo { get; } | 
|  |  | 69 |  |         /// <summary> The batch name. </summary> | 
|  | 0 | 70 |  |         public string Name { get; } | 
|  |  | 71 |  |         /// <summary> The workspace name. </summary> | 
|  | 0 | 72 |  |         public string WorkspaceName { get; } | 
|  |  | 73 |  |         /// <summary> The Spark pool name. </summary> | 
|  | 0 | 74 |  |         public string SparkPoolName { get; } | 
|  |  | 75 |  |         /// <summary> The submitter name. </summary> | 
|  | 0 | 76 |  |         public string SubmitterName { get; } | 
|  |  | 77 |  |         /// <summary> The submitter identifier. </summary> | 
|  | 0 | 78 |  |         public string SubmitterId { get; } | 
|  |  | 79 |  |         /// <summary> The artifact identifier. </summary> | 
|  | 0 | 80 |  |         public string ArtifactId { get; } | 
|  |  | 81 |  |         /// <summary> The job type. </summary> | 
|  | 0 | 82 |  |         public SparkJobType? JobType { get; } | 
|  |  | 83 |  |         /// <summary> The Spark batch job result. </summary> | 
|  | 0 | 84 |  |         public SparkBatchJobResultType? Result { get; } | 
|  |  | 85 |  |         /// <summary> The scheduler information. </summary> | 
|  | 0 | 86 |  |         public SparkScheduler Scheduler { get; } | 
|  |  | 87 |  |         /// <summary> The plugin information. </summary> | 
|  | 0 | 88 |  |         public SparkServicePlugin Plugin { get; } | 
|  |  | 89 |  |         /// <summary> The error information. </summary> | 
|  | 0 | 90 |  |         public IReadOnlyList<SparkServiceError> Errors { get; } | 
|  |  | 91 |  |         /// <summary> The tags. </summary> | 
|  | 0 | 92 |  |         public IReadOnlyDictionary<string, string> Tags { get; } | 
|  |  | 93 |  |         /// <summary> The session Id. </summary> | 
|  | 0 | 94 |  |         public int Id { get; } | 
|  |  | 95 |  |         /// <summary> The application id of this session. </summary> | 
|  | 0 | 96 |  |         public string AppId { get; } | 
|  |  | 97 |  |         /// <summary> The detailed application info. </summary> | 
|  | 0 | 98 |  |         public IReadOnlyDictionary<string, string> AppInfo { get; } | 
|  |  | 99 |  |         /// <summary> The batch state. </summary> | 
|  | 0 | 100 |  |         public string State { get; } | 
|  |  | 101 |  |         /// <summary> The log lines. </summary> | 
|  | 0 | 102 |  |         public IReadOnlyList<string> LogLines { get; } | 
|  |  | 103 |  |     } | 
|  |  | 104 |  | } |