| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | 3 | | // |
| | 4 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 5 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 6 | | // regenerated. |
| | 7 | |
|
| | 8 | | // |
| | 9 | | // This file was autogenerated by a tool. |
| | 10 | | // Do not modify it. |
| | 11 | | // |
| | 12 | |
|
| | 13 | | namespace Microsoft.Azure.Batch |
| | 14 | | { |
| | 15 | | using Models = Microsoft.Azure.Batch.Protocol.Models; |
| | 16 | | using System; |
| | 17 | | using System.Collections.Generic; |
| | 18 | | using System.Linq; |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not sup |
| | 22 | | /// on Linux pool created with Shared Image Gallery Image. |
| | 23 | | /// </summary> |
| | 24 | | public partial class DiskEncryptionConfiguration : ITransportObjectProvider<Models.DiskEncryptionConfiguration>, IPr |
| | 25 | | { |
| | 26 | | #region Constructors |
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the <see cref="DiskEncryptionConfiguration"/> class. |
| | 29 | | /// </summary> |
| | 30 | | /// <param name='targets'>The list of disk targets Batch Service will encrypt on the compute node.</param> |
| 224 | 31 | | public DiskEncryptionConfiguration( |
| 224 | 32 | | IList<Common.DiskEncryptionTarget> targets) |
| | 33 | | { |
| 224 | 34 | | this.Targets = targets; |
| 224 | 35 | | } |
| | 36 | |
|
| 295 | 37 | | internal DiskEncryptionConfiguration(Models.DiskEncryptionConfiguration protocolObject) |
| | 38 | | { |
| 295 | 39 | | this.Targets = UtilitiesInternal.ConvertEnumCollection<Models.DiskEncryptionTarget, Common.DiskEncryptionTar |
| 295 | 40 | | } |
| | 41 | |
|
| | 42 | | #endregion Constructors |
| | 43 | |
|
| | 44 | | #region DiskEncryptionConfiguration |
| | 45 | |
|
| | 46 | | /// <summary> |
| | 47 | | /// Gets the list of disk targets Batch Service will encrypt on the compute node. |
| | 48 | | /// </summary> |
| | 49 | | /// <remarks> |
| | 50 | | /// If omitted, no disks on the compute nodes in the pool will be encrypted. On Linux pool, only <see cref="Comm |
| | 51 | | /// is supported; on Windows pool, <see cref="Common.DiskEncryptionTarget.OsDisk"/> and <see cref="Common.DiskEn |
| | 52 | | /// must be specified. |
| | 53 | | /// </remarks> |
| 742 | 54 | | public IList<Common.DiskEncryptionTarget> Targets { get; } |
| | 55 | |
|
| | 56 | | #endregion // DiskEncryptionConfiguration |
| | 57 | |
|
| | 58 | | #region IPropertyMetadata |
| | 59 | |
|
| | 60 | | bool IModifiable.HasBeenModified |
| | 61 | | { |
| | 62 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 63 | | get { return false; } |
| | 64 | | } |
| | 65 | |
|
| | 66 | | bool IReadOnly.IsReadOnly |
| | 67 | | { |
| 0 | 68 | | get { return true; } |
| | 69 | | set |
| | 70 | | { |
| | 71 | | // This class is compile time readonly already |
| 246 | 72 | | } |
| | 73 | | } |
| | 74 | |
|
| | 75 | | #endregion // IPropertyMetadata |
| | 76 | |
|
| | 77 | | #region Internal/private methods |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Return a protocol object of the requested type. |
| | 81 | | /// </summary> |
| | 82 | | /// <returns>The protocol object of the requested type.</returns> |
| | 83 | | Models.DiskEncryptionConfiguration ITransportObjectProvider<Models.DiskEncryptionConfiguration>.GetTransportObje |
| | 84 | | { |
| 223 | 85 | | Models.DiskEncryptionConfiguration result = new Models.DiskEncryptionConfiguration() |
| 223 | 86 | | { |
| 223 | 87 | | Targets = UtilitiesInternal.ConvertEnumCollection<Common.DiskEncryptionTarget, Models.DiskEncryptionTarg |
| 223 | 88 | | }; |
| | 89 | |
|
| 223 | 90 | | return result; |
| | 91 | | } |
| | 92 | |
|
| | 93 | |
|
| | 94 | | #endregion // Internal/private methods |
| | 95 | | } |
| | 96 | | } |