| | 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 configuration for Compute Nodes in a Pool based on the Azure |
| | 20 | | /// Virtual Machines infrastructure. |
| | 21 | | /// </summary> |
| | 22 | | public partial class VirtualMachineConfiguration |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the VirtualMachineConfiguration |
| | 26 | | /// class. |
| | 27 | | /// </summary> |
| 848 | 28 | | public VirtualMachineConfiguration() |
| | 29 | | { |
| | 30 | | CustomInit(); |
| 848 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the VirtualMachineConfiguration |
| | 35 | | /// class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="imageReference">A reference to the Azure Virtual |
| | 38 | | /// Machines Marketplace Image or the custom Virtual Machine Image to |
| | 39 | | /// use.</param> |
| | 40 | | /// <param name="nodeAgentSKUId">The SKU of the Batch Compute Node |
| | 41 | | /// agent to be provisioned on Compute Nodes in the Pool.</param> |
| | 42 | | /// <param name="windowsConfiguration">Windows operating system |
| | 43 | | /// settings on the virtual machine.</param> |
| | 44 | | /// <param name="dataDisks">The configuration for data disks attached |
| | 45 | | /// to the Compute Nodes in the Pool.</param> |
| | 46 | | /// <param name="licenseType">The type of on-premises license to be |
| | 47 | | /// used when deploying the operating system.</param> |
| | 48 | | /// <param name="containerConfiguration">The container configuration |
| | 49 | | /// for the Pool.</param> |
| | 50 | | /// <param name="diskEncryptionConfiguration">The disk encryption |
| | 51 | | /// configuration for the pool.</param> |
| 0 | 52 | | public VirtualMachineConfiguration(ImageReference imageReference, string nodeAgentSKUId, WindowsConfiguration wi |
| | 53 | | { |
| 0 | 54 | | ImageReference = imageReference; |
| 0 | 55 | | NodeAgentSKUId = nodeAgentSKUId; |
| 0 | 56 | | WindowsConfiguration = windowsConfiguration; |
| 0 | 57 | | DataDisks = dataDisks; |
| 0 | 58 | | LicenseType = licenseType; |
| 0 | 59 | | ContainerConfiguration = containerConfiguration; |
| 0 | 60 | | DiskEncryptionConfiguration = diskEncryptionConfiguration; |
| | 61 | | CustomInit(); |
| 0 | 62 | | } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// An initialization method that performs custom operations like setting defaults |
| | 66 | | /// </summary> |
| | 67 | | partial void CustomInit(); |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets a reference to the Azure Virtual Machines Marketplace |
| | 71 | | /// Image or the custom Virtual Machine Image to use. |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "imageReference")] |
| 1993 | 74 | | public ImageReference ImageReference { get; set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets or sets the SKU of the Batch Compute Node agent to be |
| | 78 | | /// provisioned on Compute Nodes in the Pool. |
| | 79 | | /// </summary> |
| | 80 | | /// <remarks> |
| | 81 | | /// The Batch Compute Node agent is a program that runs on each Compute |
| | 82 | | /// Node in the Pool, and provides the command-and-control interface |
| | 83 | | /// between the Compute Node and the Batch service. There are different |
| | 84 | | /// implementations of the Compute Node agent, known as SKUs, for |
| | 85 | | /// different operating systems. You must specify a Compute Node agent |
| | 86 | | /// SKU which matches the selected Image reference. To get the list of |
| | 87 | | /// supported Compute Node agent SKUs along with their list of verified |
| | 88 | | /// Image references, see the 'List supported Compute Node agent SKUs' |
| | 89 | | /// operation. |
| | 90 | | /// </remarks> |
| | 91 | | [JsonProperty(PropertyName = "nodeAgentSKUId")] |
| 1996 | 92 | | public string NodeAgentSKUId { get; set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets or sets windows operating system settings on the virtual |
| | 96 | | /// machine. |
| | 97 | | /// </summary> |
| | 98 | | /// <remarks> |
| | 99 | | /// This property must not be specified if the imageReference property |
| | 100 | | /// specifies a Linux OS Image. |
| | 101 | | /// </remarks> |
| | 102 | | [JsonProperty(PropertyName = "windowsConfiguration")] |
| 1974 | 103 | | public WindowsConfiguration WindowsConfiguration { get; set; } |
| | 104 | |
|
| | 105 | | /// <summary> |
| | 106 | | /// Gets or sets the configuration for data disks attached to the |
| | 107 | | /// Compute Nodes in the Pool. |
| | 108 | | /// </summary> |
| | 109 | | /// <remarks> |
| | 110 | | /// This property must be specified if the Compute Nodes in the Pool |
| | 111 | | /// need to have empty data disks attached to them. This cannot be |
| | 112 | | /// updated. Each Compute Node gets its own disk (the disk is not a |
| | 113 | | /// file share). Existing disks cannot be attached, each attached disk |
| | 114 | | /// is empty. When the Compute Node is removed from the Pool, the disk |
| | 115 | | /// and all data associated with it is also deleted. The disk is not |
| | 116 | | /// formatted after being attached, it must be formatted before use - |
| | 117 | | /// for more information see |
| | 118 | | /// https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk |
| | 119 | | /// and |
| | 120 | | /// https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-v |
| | 121 | | /// </remarks> |
| | 122 | | [JsonProperty(PropertyName = "dataDisks")] |
| 1961 | 123 | | public IList<DataDisk> DataDisks { get; set; } |
| | 124 | |
|
| | 125 | | /// <summary> |
| | 126 | | /// Gets or sets the type of on-premises license to be used when |
| | 127 | | /// deploying the operating system. |
| | 128 | | /// </summary> |
| | 129 | | /// <remarks> |
| | 130 | | /// This only applies to Images that contain the Windows operating |
| | 131 | | /// system, and should only be used when you hold valid on-premises |
| | 132 | | /// licenses for the Compute Nodes which will be deployed. If omitted, |
| | 133 | | /// no on-premises licensing discount is applied. Values are: |
| | 134 | | /// |
| | 135 | | /// Windows_Server - The on-premises license is for Windows Server. |
| | 136 | | /// Windows_Client - The on-premises license is for Windows Client. |
| | 137 | | /// |
| | 138 | | /// </remarks> |
| | 139 | | [JsonProperty(PropertyName = "licenseType")] |
| 1978 | 140 | | public string LicenseType { get; set; } |
| | 141 | |
|
| | 142 | | /// <summary> |
| | 143 | | /// Gets or sets the container configuration for the Pool. |
| | 144 | | /// </summary> |
| | 145 | | /// <remarks> |
| | 146 | | /// If specified, setup is performed on each Compute Node in the Pool |
| | 147 | | /// to allow Tasks to run in containers. All regular Tasks and Job |
| | 148 | | /// manager Tasks run on this Pool must specify the containerSettings |
| | 149 | | /// property, and all other Tasks may specify it. |
| | 150 | | /// </remarks> |
| | 151 | | [JsonProperty(PropertyName = "containerConfiguration")] |
| 1980 | 152 | | public ContainerConfiguration ContainerConfiguration { get; set; } |
| | 153 | |
|
| | 154 | | /// <summary> |
| | 155 | | /// Gets or sets the disk encryption configuration for the pool. |
| | 156 | | /// </summary> |
| | 157 | | /// <remarks> |
| | 158 | | /// If specified, encryption is performed on each node in the pool |
| | 159 | | /// during node provisioning. |
| | 160 | | /// </remarks> |
| | 161 | | [JsonProperty(PropertyName = "diskEncryptionConfiguration")] |
| 1991 | 162 | | public DiskEncryptionConfiguration DiskEncryptionConfiguration { get; set; } |
| | 163 | |
|
| | 164 | | } |
| | 165 | | } |