| | 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.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Settings which will be used by the data disks associated to Compute |
| | 18 | | /// Nodes in the Pool. When using attached data disks, you need to mount |
| | 19 | | /// and format the disks from within a VM to use them. |
| | 20 | | /// </summary> |
| | 21 | | public partial class DataDisk |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the DataDisk class. |
| | 25 | | /// </summary> |
| 1919 | 26 | | public DataDisk() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 1919 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the DataDisk class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="lun">The logical unit number.</param> |
| | 35 | | /// <param name="diskSizeGB">The initial disk size in |
| | 36 | | /// gigabytes.</param> |
| | 37 | | /// <param name="caching">The type of caching to be enabled for the |
| | 38 | | /// data disks.</param> |
| | 39 | | /// <param name="storageAccountType">The storage Account type to be |
| | 40 | | /// used for the data disk.</param> |
| 0 | 41 | | public DataDisk(int lun, int diskSizeGB, CachingType? caching = default(CachingType?), StorageAccountType? stora |
| | 42 | | { |
| 0 | 43 | | Lun = lun; |
| 0 | 44 | | Caching = caching; |
| 0 | 45 | | DiskSizeGB = diskSizeGB; |
| 0 | 46 | | StorageAccountType = storageAccountType; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets the logical unit number. |
| | 57 | | /// </summary> |
| | 58 | | /// <remarks> |
| | 59 | | /// The lun is used to uniquely identify each data disk. If attaching |
| | 60 | | /// multiple disks, each should have a distinct lun. |
| | 61 | | /// </remarks> |
| | 62 | | [JsonProperty(PropertyName = "lun")] |
| 4501 | 63 | | public int Lun { get; set; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets the type of caching to be enabled for the data disks. |
| | 67 | | /// </summary> |
| | 68 | | /// <remarks> |
| | 69 | | /// The default value for caching is readwrite. For information about |
| | 70 | | /// the caching options see: |
| | 71 | | /// https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-ima |
| | 72 | | /// Possible values include: 'none', 'readOnly', 'readWrite' |
| | 73 | | /// </remarks> |
| | 74 | | [JsonProperty(PropertyName = "caching")] |
| 4475 | 75 | | public CachingType? Caching { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets the initial disk size in gigabytes. |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "diskSizeGB")] |
| 4463 | 81 | | public int DiskSizeGB { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets the storage Account type to be used for the data disk. |
| | 85 | | /// </summary> |
| | 86 | | /// <remarks> |
| | 87 | | /// If omitted, the default is "standard_lrs". Possible values include: |
| | 88 | | /// 'StandardLRS', 'PremiumLRS' |
| | 89 | | /// </remarks> |
| | 90 | | [JsonProperty(PropertyName = "storageAccountType")] |
| 4489 | 91 | | public StorageAccountType? StorageAccountType { get; set; } |
| | 92 | |
|
| | 93 | | } |
| | 94 | | } |