| | | 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.Collections; |
| | | 15 | | using System.Collections.Generic; |
| | | 16 | | using System.Linq; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// The set of changes to be made to a Job. |
| | | 20 | | /// </summary> |
| | | 21 | | public partial class JobPatchParameter |
| | | 22 | | { |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the JobPatchParameter class. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public JobPatchParameter() |
| | | 27 | | { |
| | | 28 | | CustomInit(); |
| | 0 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of the JobPatchParameter class. |
| | | 33 | | /// </summary> |
| | | 34 | | /// <param name="priority">The priority of the Job.</param> |
| | | 35 | | /// <param name="onAllTasksComplete">The action the Batch service |
| | | 36 | | /// should take when all Tasks in the Job are in the completed |
| | | 37 | | /// state.</param> |
| | | 38 | | /// <param name="constraints">The execution constraints for the |
| | | 39 | | /// Job.</param> |
| | | 40 | | /// <param name="poolInfo">The Pool on which the Batch service runs the |
| | | 41 | | /// Job's Tasks.</param> |
| | | 42 | | /// <param name="metadata">A list of name-value pairs associated with |
| | | 43 | | /// the Job as metadata.</param> |
| | 6 | 44 | | public JobPatchParameter(int? priority = default(int?), OnAllTasksComplete? onAllTasksComplete = default(OnAllTa |
| | | 45 | | { |
| | 6 | 46 | | Priority = priority; |
| | 6 | 47 | | OnAllTasksComplete = onAllTasksComplete; |
| | 6 | 48 | | Constraints = constraints; |
| | 6 | 49 | | PoolInfo = poolInfo; |
| | 6 | 50 | | Metadata = metadata; |
| | | 51 | | CustomInit(); |
| | 6 | 52 | | } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// An initialization method that performs custom operations like setting defaults |
| | | 56 | | /// </summary> |
| | | 57 | | partial void CustomInit(); |
| | | 58 | | |
| | | 59 | | /// <summary> |
| | | 60 | | /// Gets or sets the priority of the Job. |
| | | 61 | | /// </summary> |
| | | 62 | | /// <remarks> |
| | | 63 | | /// Priority values can range from -1000 to 1000, with -1000 being the |
| | | 64 | | /// lowest priority and 1000 being the highest priority. If omitted, |
| | | 65 | | /// the priority of the Job is left unchanged. |
| | | 66 | | /// </remarks> |
| | | 67 | | [JsonProperty(PropertyName = "priority")] |
| | 13 | 68 | | public int? Priority { get; set; } |
| | | 69 | | |
| | | 70 | | /// <summary> |
| | | 71 | | /// Gets or sets the action the Batch service should take when all |
| | | 72 | | /// Tasks in the Job are in the completed state. |
| | | 73 | | /// </summary> |
| | | 74 | | /// <remarks> |
| | | 75 | | /// If omitted, the completion behavior is left unchanged. You may not |
| | | 76 | | /// change the value from terminatejob to noaction - that is, once you |
| | | 77 | | /// have engaged automatic Job termination, you cannot turn it off |
| | | 78 | | /// again. If you try to do this, the request fails with an 'invalid |
| | | 79 | | /// property value' error response; if you are calling the REST API |
| | | 80 | | /// directly, the HTTP status code is 400 (Bad Request). Possible |
| | | 81 | | /// values include: 'noAction', 'terminateJob' |
| | | 82 | | /// </remarks> |
| | | 83 | | [JsonProperty(PropertyName = "onAllTasksComplete")] |
| | 13 | 84 | | public OnAllTasksComplete? OnAllTasksComplete { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Gets or sets the execution constraints for the Job. |
| | | 88 | | /// </summary> |
| | | 89 | | /// <remarks> |
| | | 90 | | /// If omitted, the existing execution constraints are left unchanged. |
| | | 91 | | /// </remarks> |
| | | 92 | | [JsonProperty(PropertyName = "constraints")] |
| | 14 | 93 | | public JobConstraints Constraints { get; set; } |
| | | 94 | | |
| | | 95 | | /// <summary> |
| | | 96 | | /// Gets or sets the Pool on which the Batch service runs the Job's |
| | | 97 | | /// Tasks. |
| | | 98 | | /// </summary> |
| | | 99 | | /// <remarks> |
| | | 100 | | /// You may change the Pool for a Job only when the Job is disabled. |
| | | 101 | | /// The Patch Job call will fail if you include the poolInfo element |
| | | 102 | | /// and the Job is not disabled. If you specify an |
| | | 103 | | /// autoPoolSpecification in the poolInfo, only the keepAlive property |
| | | 104 | | /// of the autoPoolSpecification can be updated, and then only if the |
| | | 105 | | /// autoPoolSpecification has a poolLifetimeOption of Job (other job |
| | | 106 | | /// properties can be updated as normal). If omitted, the Job continues |
| | | 107 | | /// to run on its current Pool. |
| | | 108 | | /// </remarks> |
| | | 109 | | [JsonProperty(PropertyName = "poolInfo")] |
| | 13 | 110 | | public PoolInformation PoolInfo { get; set; } |
| | | 111 | | |
| | | 112 | | /// <summary> |
| | | 113 | | /// Gets or sets a list of name-value pairs associated with the Job as |
| | | 114 | | /// metadata. |
| | | 115 | | /// </summary> |
| | | 116 | | /// <remarks> |
| | | 117 | | /// If omitted, the existing Job metadata is left unchanged. |
| | | 118 | | /// </remarks> |
| | | 119 | | [JsonProperty(PropertyName = "metadata")] |
| | 13 | 120 | | public IList<MetadataItem> Metadata { get; set; } |
| | | 121 | | |
| | | 122 | | } |
| | | 123 | | } |