| | 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.Spark.Models |
| | 12 | | { |
| | 13 | | /// <summary> Response for batch list operation. </summary> |
| | 14 | | public partial class SparkBatchJobCollection |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of SparkBatchJobCollection. </summary> |
| | 17 | | /// <param name="from"> The start index of fetched sessions. </param> |
| | 18 | | /// <param name="total"> Number of sessions fetched. </param> |
| 0 | 19 | | internal SparkBatchJobCollection(int @from, int total) |
| | 20 | | { |
| 0 | 21 | | From = @from; |
| 0 | 22 | | Total = total; |
| 0 | 23 | | Sessions = new ChangeTrackingList<SparkBatchJob>(); |
| 0 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> Initializes a new instance of SparkBatchJobCollection. </summary> |
| | 27 | | /// <param name="from"> The start index of fetched sessions. </param> |
| | 28 | | /// <param name="total"> Number of sessions fetched. </param> |
| | 29 | | /// <param name="sessions"> Batch list. </param> |
| 4 | 30 | | internal SparkBatchJobCollection(int @from, int total, IReadOnlyList<SparkBatchJob> sessions) |
| | 31 | | { |
| 4 | 32 | | From = @from; |
| 4 | 33 | | Total = total; |
| 4 | 34 | | Sessions = sessions; |
| 4 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> The start index of fetched sessions. </summary> |
| 0 | 38 | | public int From { get; } |
| | 39 | | /// <summary> Number of sessions fetched. </summary> |
| 0 | 40 | | public int Total { get; } |
| | 41 | | /// <summary> Batch list. </summary> |
| 4 | 42 | | public IReadOnlyList<SparkBatchJob> Sessions { get; } |
| | 43 | | } |
| | 44 | | } |