| | 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 Pool. |
| | 20 | | /// </summary> |
| | 21 | | public partial class PoolPatchParameter |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the PoolPatchParameter class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public PoolPatchParameter() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the PoolPatchParameter class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="startTask">A Task to run on each Compute Node as it |
| | 35 | | /// joins the Pool. The Task runs when the Compute Node is added to the |
| | 36 | | /// Pool or when the Compute Node is restarted.</param> |
| | 37 | | /// <param name="certificateReferences">A list of Certificates to be |
| | 38 | | /// installed on each Compute Node in the Pool.</param> |
| | 39 | | /// <param name="applicationPackageReferences">A list of Packages to be |
| | 40 | | /// installed on each Compute Node in the Pool.</param> |
| | 41 | | /// <param name="metadata">A list of name-value pairs associated with |
| | 42 | | /// the Pool as metadata.</param> |
| 5 | 43 | | public PoolPatchParameter(StartTask startTask = default(StartTask), IList<CertificateReference> certificateRefer |
| | 44 | | { |
| 5 | 45 | | StartTask = startTask; |
| 5 | 46 | | CertificateReferences = certificateReferences; |
| 5 | 47 | | ApplicationPackageReferences = applicationPackageReferences; |
| 5 | 48 | | Metadata = metadata; |
| | 49 | | CustomInit(); |
| 5 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets a Task to run on each Compute Node as it joins the |
| | 59 | | /// Pool. The Task runs when the Compute Node is added to the Pool or |
| | 60 | | /// when the Compute Node is restarted. |
| | 61 | | /// </summary> |
| | 62 | | /// <remarks> |
| | 63 | | /// If this element is present, it overwrites any existing StartTask. |
| | 64 | | /// If omitted, any existing StartTask is left unchanged. |
| | 65 | | /// </remarks> |
| | 66 | | [JsonProperty(PropertyName = "startTask")] |
| 12 | 67 | | public StartTask StartTask { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets a list of Certificates to be installed on each Compute |
| | 71 | | /// Node in the Pool. |
| | 72 | | /// </summary> |
| | 73 | | /// <remarks> |
| | 74 | | /// If this element is present, it replaces any existing Certificate |
| | 75 | | /// references configured on the Pool. If omitted, any existing |
| | 76 | | /// Certificate references are left unchanged. For Windows Nodes, the |
| | 77 | | /// Batch service installs the Certificates to the specified |
| | 78 | | /// Certificate store and location. For Linux Compute Nodes, the |
| | 79 | | /// Certificates are stored in a directory inside the Task working |
| | 80 | | /// directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is |
| | 81 | | /// supplied to the Task to query for this location. For Certificates |
| | 82 | | /// with visibility of 'remoteUser', a 'certs' directory is created in |
| | 83 | | /// the user's home directory (e.g., /home/{user-name}/certs) and |
| | 84 | | /// Certificates are placed in that directory. |
| | 85 | | /// </remarks> |
| | 86 | | [JsonProperty(PropertyName = "certificateReferences")] |
| 10 | 87 | | public IList<CertificateReference> CertificateReferences { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets a list of Packages to be installed on each Compute |
| | 91 | | /// Node in the Pool. |
| | 92 | | /// </summary> |
| | 93 | | /// <remarks> |
| | 94 | | /// Changes to Package references affect all new Nodes joining the |
| | 95 | | /// Pool, but do not affect Compute Nodes that are already in the Pool |
| | 96 | | /// until they are rebooted or reimaged. If this element is present, it |
| | 97 | | /// replaces any existing Package references. If you specify an empty |
| | 98 | | /// collection, then all Package references are removed from the Pool. |
| | 99 | | /// If omitted, any existing Package references are left unchanged. |
| | 100 | | /// </remarks> |
| | 101 | | [JsonProperty(PropertyName = "applicationPackageReferences")] |
| 10 | 102 | | public IList<ApplicationPackageReference> ApplicationPackageReferences { get; set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets or sets a list of name-value pairs associated with the Pool as |
| | 106 | | /// metadata. |
| | 107 | | /// </summary> |
| | 108 | | /// <remarks> |
| | 109 | | /// If this element is present, it replaces any existing metadata |
| | 110 | | /// configured on the Pool. If you specify an empty collection, any |
| | 111 | | /// metadata is removed from the Pool. If omitted, any existing |
| | 112 | | /// metadata is left unchanged. |
| | 113 | | /// </remarks> |
| | 114 | | [JsonProperty(PropertyName = "metadata")] |
| 11 | 115 | | public IList<MetadataItem> Metadata { get; set; } |
| | 116 | |
|
| | 117 | | } |
| | 118 | | } |