| | 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 | | /// Information used to connect to an NFS file system. |
| | 18 | | /// </summary> |
| | 19 | | public partial class NFSMountConfiguration |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the NFSMountConfiguration class. |
| | 23 | | /// </summary> |
| 2296 | 24 | | public NFSMountConfiguration() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 2296 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the NFSMountConfiguration class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="source">The URI of the file system to mount.</param> |
| | 33 | | /// <param name="relativeMountPath">The relative path on the compute |
| | 34 | | /// node where the file system will be mounted</param> |
| | 35 | | /// <param name="mountOptions">Additional command line options to pass |
| | 36 | | /// to the mount command.</param> |
| 0 | 37 | | public NFSMountConfiguration(string source, string relativeMountPath, string mountOptions = default(string)) |
| | 38 | | { |
| 0 | 39 | | Source = source; |
| 0 | 40 | | RelativeMountPath = relativeMountPath; |
| 0 | 41 | | MountOptions = mountOptions; |
| | 42 | | CustomInit(); |
| 0 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// An initialization method that performs custom operations like setting defaults |
| | 47 | | /// </summary> |
| | 48 | | partial void CustomInit(); |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets or sets the URI of the file system to mount. |
| | 52 | | /// </summary> |
| | 53 | | [JsonProperty(PropertyName = "source")] |
| 5246 | 54 | | public string Source { get; set; } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets the relative path on the compute node where the file |
| | 58 | | /// system will be mounted |
| | 59 | | /// </summary> |
| | 60 | | /// <remarks> |
| | 61 | | /// All file systems are mounted relative to the Batch mounts |
| | 62 | | /// directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment |
| | 63 | | /// variable. |
| | 64 | | /// </remarks> |
| | 65 | | [JsonProperty(PropertyName = "relativeMountPath")] |
| 5279 | 66 | | public string RelativeMountPath { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets additional command line options to pass to the mount |
| | 70 | | /// command. |
| | 71 | | /// </summary> |
| | 72 | | /// <remarks> |
| | 73 | | /// These are 'net use' options in Windows and 'mount' options in |
| | 74 | | /// Linux. |
| | 75 | | /// </remarks> |
| | 76 | | [JsonProperty(PropertyName = "mountOptions")] |
| 5284 | 77 | | public string MountOptions { get; set; } |
| | 78 | |
|
| | 79 | | } |
| | 80 | | } |