| | 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 | | /// A Job Schedule that allows recurring Jobs by specifying when to run |
| | 20 | | /// Jobs and a specification used to create each Job. |
| | 21 | | /// </summary> |
| | 22 | | public partial class CloudJobSchedule |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the CloudJobSchedule class. |
| | 26 | | /// </summary> |
| 1004 | 27 | | public CloudJobSchedule() |
| | 28 | | { |
| | 29 | | CustomInit(); |
| 1004 | 30 | | } |
| | 31 | |
|
| | 32 | | /// <summary> |
| | 33 | | /// Initializes a new instance of the CloudJobSchedule class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="id">A string that uniquely identifies the schedule |
| | 36 | | /// within the Account.</param> |
| | 37 | | /// <param name="displayName">The display name for the |
| | 38 | | /// schedule.</param> |
| | 39 | | /// <param name="url">The URL of the Job Schedule.</param> |
| | 40 | | /// <param name="eTag">The ETag of the Job Schedule.</param> |
| | 41 | | /// <param name="lastModified">The last modified time of the Job |
| | 42 | | /// Schedule.</param> |
| | 43 | | /// <param name="creationTime">The creation time of the Job |
| | 44 | | /// Schedule.</param> |
| | 45 | | /// <param name="state">The current state of the Job Schedule.</param> |
| | 46 | | /// <param name="stateTransitionTime">The time at which the Job |
| | 47 | | /// Schedule entered the current state.</param> |
| | 48 | | /// <param name="previousState">The previous state of the Job |
| | 49 | | /// Schedule.</param> |
| | 50 | | /// <param name="previousStateTransitionTime">The time at which the Job |
| | 51 | | /// Schedule entered its previous state.</param> |
| | 52 | | /// <param name="schedule">The schedule according to which Jobs will be |
| | 53 | | /// created.</param> |
| | 54 | | /// <param name="jobSpecification">The details of the Jobs to be |
| | 55 | | /// created on this schedule.</param> |
| | 56 | | /// <param name="executionInfo">Information about Jobs that have been |
| | 57 | | /// and will be run under this schedule.</param> |
| | 58 | | /// <param name="metadata">A list of name-value pairs associated with |
| | 59 | | /// the schedule as metadata.</param> |
| | 60 | | /// <param name="stats">The lifetime resource usage statistics for the |
| | 61 | | /// Job Schedule. The statistics may not be immediately available. The |
| | 62 | | /// Batch service performs periodic roll-up of statistics. The typical |
| | 63 | | /// delay is about 30 minutes.</param> |
| 8 | 64 | | public CloudJobSchedule(string id = default(string), string displayName = default(string), string url = default( |
| | 65 | | { |
| 8 | 66 | | Id = id; |
| 8 | 67 | | DisplayName = displayName; |
| 8 | 68 | | Url = url; |
| 8 | 69 | | ETag = eTag; |
| 8 | 70 | | LastModified = lastModified; |
| 8 | 71 | | CreationTime = creationTime; |
| 8 | 72 | | State = state; |
| 8 | 73 | | StateTransitionTime = stateTransitionTime; |
| 8 | 74 | | PreviousState = previousState; |
| 8 | 75 | | PreviousStateTransitionTime = previousStateTransitionTime; |
| 8 | 76 | | Schedule = schedule; |
| 8 | 77 | | JobSpecification = jobSpecification; |
| 8 | 78 | | ExecutionInfo = executionInfo; |
| 8 | 79 | | Metadata = metadata; |
| 8 | 80 | | Stats = stats; |
| | 81 | | CustomInit(); |
| 8 | 82 | | } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// An initialization method that performs custom operations like setting defaults |
| | 86 | | /// </summary> |
| | 87 | | partial void CustomInit(); |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets a string that uniquely identifies the schedule within |
| | 91 | | /// the Account. |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "id")] |
| 2526 | 94 | | public string Id { get; set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets or sets the display name for the schedule. |
| | 98 | | /// </summary> |
| | 99 | | [JsonProperty(PropertyName = "displayName")] |
| 2535 | 100 | | public string DisplayName { get; set; } |
| | 101 | |
|
| | 102 | | /// <summary> |
| | 103 | | /// Gets or sets the URL of the Job Schedule. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "url")] |
| 2513 | 106 | | public string Url { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Gets or sets the ETag of the Job Schedule. |
| | 110 | | /// </summary> |
| | 111 | | /// <remarks> |
| | 112 | | /// This is an opaque string. You can use it to detect whether the Job |
| | 113 | | /// Schedule has changed between requests. In particular, you can be |
| | 114 | | /// pass the ETag with an Update Job Schedule request to specify that |
| | 115 | | /// your changes should take effect only if nobody else has modified |
| | 116 | | /// the schedule in the meantime. |
| | 117 | | /// </remarks> |
| | 118 | | [JsonProperty(PropertyName = "eTag")] |
| 2513 | 119 | | public string ETag { get; set; } |
| | 120 | |
|
| | 121 | | /// <summary> |
| | 122 | | /// Gets or sets the last modified time of the Job Schedule. |
| | 123 | | /// </summary> |
| | 124 | | /// <remarks> |
| | 125 | | /// This is the last time at which the schedule level data, such as the |
| | 126 | | /// Job specification or recurrence information, changed. It does not |
| | 127 | | /// factor in job-level changes such as new Jobs being created or Jobs |
| | 128 | | /// changing state. |
| | 129 | | /// </remarks> |
| | 130 | | [JsonProperty(PropertyName = "lastModified")] |
| 2525 | 131 | | public System.DateTime? LastModified { get; set; } |
| | 132 | |
|
| | 133 | | /// <summary> |
| | 134 | | /// Gets or sets the creation time of the Job Schedule. |
| | 135 | | /// </summary> |
| | 136 | | [JsonProperty(PropertyName = "creationTime")] |
| 2539 | 137 | | public System.DateTime? CreationTime { get; set; } |
| | 138 | |
|
| | 139 | | /// <summary> |
| | 140 | | /// Gets or sets the current state of the Job Schedule. |
| | 141 | | /// </summary> |
| | 142 | | /// <remarks> |
| | 143 | | /// Possible values include: 'active', 'completed', 'disabled', |
| | 144 | | /// 'terminating', 'deleting' |
| | 145 | | /// </remarks> |
| | 146 | | [JsonProperty(PropertyName = "state")] |
| 2544 | 147 | | public JobScheduleState? State { get; set; } |
| | 148 | |
|
| | 149 | | /// <summary> |
| | 150 | | /// Gets or sets the time at which the Job Schedule entered the current |
| | 151 | | /// state. |
| | 152 | | /// </summary> |
| | 153 | | [JsonProperty(PropertyName = "stateTransitionTime")] |
| 2519 | 154 | | public System.DateTime? StateTransitionTime { get; set; } |
| | 155 | |
|
| | 156 | | /// <summary> |
| | 157 | | /// Gets or sets the previous state of the Job Schedule. |
| | 158 | | /// </summary> |
| | 159 | | /// <remarks> |
| | 160 | | /// This property is not present if the Job Schedule is in its initial |
| | 161 | | /// active state. Possible values include: 'active', 'completed', |
| | 162 | | /// 'disabled', 'terminating', 'deleting' |
| | 163 | | /// </remarks> |
| | 164 | | [JsonProperty(PropertyName = "previousState")] |
| 2532 | 165 | | public JobScheduleState? PreviousState { get; set; } |
| | 166 | |
|
| | 167 | | /// <summary> |
| | 168 | | /// Gets or sets the time at which the Job Schedule entered its |
| | 169 | | /// previous state. |
| | 170 | | /// </summary> |
| | 171 | | /// <remarks> |
| | 172 | | /// This property is not present if the Job Schedule is in its initial |
| | 173 | | /// active state. |
| | 174 | | /// </remarks> |
| | 175 | | [JsonProperty(PropertyName = "previousStateTransitionTime")] |
| 2541 | 176 | | public System.DateTime? PreviousStateTransitionTime { get; set; } |
| | 177 | |
|
| | 178 | | /// <summary> |
| | 179 | | /// Gets or sets the schedule according to which Jobs will be created. |
| | 180 | | /// </summary> |
| | 181 | | [JsonProperty(PropertyName = "schedule")] |
| 2534 | 182 | | public Schedule Schedule { get; set; } |
| | 183 | |
|
| | 184 | | /// <summary> |
| | 185 | | /// Gets or sets the details of the Jobs to be created on this |
| | 186 | | /// schedule. |
| | 187 | | /// </summary> |
| | 188 | | [JsonProperty(PropertyName = "jobSpecification")] |
| 2502 | 189 | | public JobSpecification JobSpecification { get; set; } |
| | 190 | |
|
| | 191 | | /// <summary> |
| | 192 | | /// Gets or sets information about Jobs that have been and will be run |
| | 193 | | /// under this schedule. |
| | 194 | | /// </summary> |
| | 195 | | [JsonProperty(PropertyName = "executionInfo")] |
| 2519 | 196 | | public JobScheduleExecutionInformation ExecutionInfo { get; set; } |
| | 197 | |
|
| | 198 | | /// <summary> |
| | 199 | | /// Gets or sets a list of name-value pairs associated with the |
| | 200 | | /// schedule as metadata. |
| | 201 | | /// </summary> |
| | 202 | | /// <remarks> |
| | 203 | | /// The Batch service does not assign any meaning to metadata; it is |
| | 204 | | /// solely for the use of user code. |
| | 205 | | /// </remarks> |
| | 206 | | [JsonProperty(PropertyName = "metadata")] |
| 2522 | 207 | | public IList<MetadataItem> Metadata { get; set; } |
| | 208 | |
|
| | 209 | | /// <summary> |
| | 210 | | /// Gets or sets the lifetime resource usage statistics for the Job |
| | 211 | | /// Schedule. The statistics may not be immediately available. The |
| | 212 | | /// Batch service performs periodic roll-up of statistics. The typical |
| | 213 | | /// delay is about 30 minutes. |
| | 214 | | /// </summary> |
| | 215 | | [JsonProperty(PropertyName = "stats")] |
| 2529 | 216 | | public JobScheduleStatistics Stats { get; set; } |
| | 217 | |
|
| | 218 | | } |
| | 219 | | } |