| | 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 | | /// Information used to connect to an NFS file system. |
| | 22 | | /// </summary> |
| | 23 | | public partial class NfsMountConfiguration : ITransportObjectProvider<Models.NFSMountConfiguration>, IPropertyMetada |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the <see cref="NfsMountConfiguration"/> class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name='source'>The URI of the file system to mount.</param> |
| | 30 | | /// <param name='relativeMountPath'>The relative path on the compute node where the file system will be mounted. |
| | 31 | | /// <param name='mountOptions'>Additional command line options to pass to the mount command.</param> |
| 935 | 32 | | public NfsMountConfiguration( |
| 935 | 33 | | string source, |
| 935 | 34 | | string relativeMountPath, |
| 935 | 35 | | string mountOptions = default(string)) |
| | 36 | | { |
| 935 | 37 | | this.Source = source; |
| 935 | 38 | | this.RelativeMountPath = relativeMountPath; |
| 935 | 39 | | this.MountOptions = mountOptions; |
| 935 | 40 | | } |
| | 41 | |
|
| 1363 | 42 | | internal NfsMountConfiguration(Models.NFSMountConfiguration protocolObject) |
| | 43 | | { |
| 1363 | 44 | | this.MountOptions = protocolObject.MountOptions; |
| 1363 | 45 | | this.RelativeMountPath = protocolObject.RelativeMountPath; |
| 1363 | 46 | | this.Source = protocolObject.Source; |
| 1363 | 47 | | } |
| | 48 | |
|
| | 49 | | #endregion Constructors |
| | 50 | |
|
| | 51 | | #region NfsMountConfiguration |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets additional command line options to pass to the mount command. |
| | 55 | | /// </summary> |
| | 56 | | /// <remarks> |
| | 57 | | /// These are 'net use' options in Windows and 'mount' options in Linux. |
| | 58 | | /// </remarks> |
| 3230 | 59 | | public string MountOptions { get; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets the relative path on the compute node where the file system will be mounted. |
| | 63 | | /// </summary> |
| | 64 | | /// <remarks> |
| | 65 | | /// All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS |
| | 66 | | /// environment variable. |
| | 67 | | /// </remarks> |
| 3230 | 68 | | public string RelativeMountPath { get; } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets the URI of the file system to mount. |
| | 72 | | /// </summary> |
| 3230 | 73 | | public string Source { get; } |
| | 74 | |
|
| | 75 | | #endregion // NfsMountConfiguration |
| | 76 | |
|
| | 77 | | #region IPropertyMetadata |
| | 78 | |
|
| | 79 | | bool IModifiable.HasBeenModified |
| | 80 | | { |
| | 81 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 82 | | get { return false; } |
| | 83 | | } |
| | 84 | |
|
| | 85 | | bool IReadOnly.IsReadOnly |
| | 86 | | { |
| 0 | 87 | | get { return true; } |
| | 88 | | set |
| | 89 | | { |
| | 90 | | // This class is compile time readonly already |
| 1364 | 91 | | } |
| | 92 | | } |
| | 93 | |
|
| | 94 | | #endregion // IPropertyMetadata |
| | 95 | |
|
| | 96 | | #region Internal/private methods |
| | 97 | |
|
| | 98 | | /// <summary> |
| | 99 | | /// Return a protocol object of the requested type. |
| | 100 | | /// </summary> |
| | 101 | | /// <returns>The protocol object of the requested type.</returns> |
| | 102 | | Models.NFSMountConfiguration ITransportObjectProvider<Models.NFSMountConfiguration>.GetTransportObject() |
| | 103 | | { |
| 933 | 104 | | Models.NFSMountConfiguration result = new Models.NFSMountConfiguration() |
| 933 | 105 | | { |
| 933 | 106 | | MountOptions = this.MountOptions, |
| 933 | 107 | | RelativeMountPath = this.RelativeMountPath, |
| 933 | 108 | | Source = this.Source, |
| 933 | 109 | | }; |
| | 110 | |
|
| 933 | 111 | | return result; |
| | 112 | | } |
| | 113 | |
|
| | 114 | |
|
| | 115 | | #endregion // Internal/private methods |
| | 116 | | } |
| | 117 | | } |