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