| | 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 JobScheduleAddParameter |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the JobScheduleAddParameter class. |
| | 26 | | /// </summary> |
| 103 | 27 | | public JobScheduleAddParameter() |
| | 28 | | { |
| 103 | 29 | | JobSpecification = new JobSpecification(); |
| | 30 | | CustomInit(); |
| 103 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the JobScheduleAddParameter class. |
| | 35 | | /// </summary> |
| | 36 | | /// <param name="id">A string that uniquely identifies the schedule |
| | 37 | | /// within the Account.</param> |
| | 38 | | /// <param name="schedule">The schedule according to which Jobs will be |
| | 39 | | /// created.</param> |
| | 40 | | /// <param name="jobSpecification">The details of the Jobs to be |
| | 41 | | /// created on this schedule.</param> |
| | 42 | | /// <param name="displayName">The display name for the |
| | 43 | | /// schedule.</param> |
| | 44 | | /// <param name="metadata">A list of name-value pairs associated with |
| | 45 | | /// the schedule as metadata.</param> |
| 0 | 46 | | public JobScheduleAddParameter(string id, Schedule schedule, JobSpecification jobSpecification, string displayNa |
| | 47 | | { |
| 0 | 48 | | Id = id; |
| 0 | 49 | | DisplayName = displayName; |
| 0 | 50 | | Schedule = schedule; |
| 0 | 51 | | JobSpecification = jobSpecification; |
| 0 | 52 | | Metadata = metadata; |
| | 53 | | CustomInit(); |
| 0 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// An initialization method that performs custom operations like setting defaults |
| | 58 | | /// </summary> |
| | 59 | | partial void CustomInit(); |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets a string that uniquely identifies the schedule within |
| | 63 | | /// the Account. |
| | 64 | | /// </summary> |
| | 65 | | /// <remarks> |
| | 66 | | /// The ID can contain any combination of alphanumeric characters |
| | 67 | | /// including hyphens and underscores, and cannot contain more than 64 |
| | 68 | | /// characters. The ID is case-preserving and case-insensitive (that |
| | 69 | | /// is, you may not have two IDs within an Account that differ only by |
| | 70 | | /// case). |
| | 71 | | /// </remarks> |
| | 72 | | [JsonProperty(PropertyName = "id")] |
| 203 | 73 | | public string Id { get; set; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets or sets the display name for the schedule. |
| | 77 | | /// </summary> |
| | 78 | | /// <remarks> |
| | 79 | | /// The display name need not be unique and can contain any Unicode |
| | 80 | | /// characters up to a maximum length of 1024. |
| | 81 | | /// </remarks> |
| | 82 | | [JsonProperty(PropertyName = "displayName")] |
| 203 | 83 | | public string DisplayName { get; set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets or sets the schedule according to which Jobs will be created. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "schedule")] |
| 203 | 89 | | public Schedule Schedule { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets or sets the details of the Jobs to be created on this |
| | 93 | | /// schedule. |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "jobSpecification")] |
| 306 | 96 | | public JobSpecification JobSpecification { get; set; } |
| | 97 | |
|
| | 98 | | /// <summary> |
| | 99 | | /// Gets or sets a list of name-value pairs associated with the |
| | 100 | | /// schedule as metadata. |
| | 101 | | /// </summary> |
| | 102 | | /// <remarks> |
| | 103 | | /// The Batch service does not assign any meaning to metadata; it is |
| | 104 | | /// solely for the use of user code. |
| | 105 | | /// </remarks> |
| | 106 | | [JsonProperty(PropertyName = "metadata")] |
| 203 | 107 | | public IList<MetadataItem> Metadata { get; set; } |
| | 108 | |
|
| | 109 | | } |
| | 110 | | } |