| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Batch.Protocol.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Specifies how a Job should be assigned to a Pool. |
| | 18 | | /// </summary> |
| | 19 | | public partial class PoolInformation |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the PoolInformation class. |
| | 23 | | /// </summary> |
| 1809 | 24 | | public PoolInformation() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 1809 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the PoolInformation class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="poolId">The ID of an existing Pool. All the Tasks of |
| | 33 | | /// the Job will run on the specified Pool.</param> |
| | 34 | | /// <param name="autoPoolSpecification">Characteristics for a temporary |
| | 35 | | /// 'auto pool'. The Batch service will create this auto Pool when the |
| | 36 | | /// Job is submitted.</param> |
| 4 | 37 | | public PoolInformation(string poolId = default(string), AutoPoolSpecification autoPoolSpecification = default(Au |
| | 38 | | { |
| 4 | 39 | | PoolId = poolId; |
| 4 | 40 | | AutoPoolSpecification = autoPoolSpecification; |
| | 41 | | CustomInit(); |
| 4 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets or sets the ID of an existing Pool. All the Tasks of the Job |
| | 51 | | /// will run on the specified Pool. |
| | 52 | | /// </summary> |
| | 53 | | /// <remarks> |
| | 54 | | /// You must ensure that the Pool referenced by this property exists. |
| | 55 | | /// If the Pool does not exist at the time the Batch service tries to |
| | 56 | | /// schedule a Job, no Tasks for the Job will run until you create a |
| | 57 | | /// Pool with that id. Note that the Batch service will not reject the |
| | 58 | | /// Job request; it will simply not run Tasks until the Pool exists. |
| | 59 | | /// You must specify either the Pool ID or the auto Pool specification, |
| | 60 | | /// but not both. |
| | 61 | | /// </remarks> |
| | 62 | | [JsonProperty(PropertyName = "poolId")] |
| 2836 | 63 | | public string PoolId { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets characteristics for a temporary 'auto pool'. The Batch |
| | 67 | | /// service will create this auto Pool when the Job is submitted. |
| | 68 | | /// </summary> |
| | 69 | | /// <remarks> |
| | 70 | | /// If auto Pool creation fails, the Batch service moves the Job to a |
| | 71 | | /// completed state, and the Pool creation error is set in the Job's |
| | 72 | | /// scheduling error property. The Batch service manages the lifetime |
| | 73 | | /// (both creation and, unless keepAlive is specified, deletion) of the |
| | 74 | | /// auto Pool. Any user actions that affect the lifetime of the auto |
| | 75 | | /// Pool while the Job is active will result in unexpected behavior. |
| | 76 | | /// You must specify either the Pool ID or the auto Pool specification, |
| | 77 | | /// but not both. |
| | 78 | | /// </remarks> |
| | 79 | | [JsonProperty(PropertyName = "autoPoolSpecification")] |
| 2809 | 80 | | public AutoPoolSpecification AutoPoolSpecification { get; set; } |
| | 81 | |
|
| | 82 | | } |
| | 83 | | } |