| | 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 a CIFS file system. |
| | 18 | | /// </summary> |
| | 19 | | public partial class CIFSMountConfiguration |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the CIFSMountConfiguration class. |
| | 23 | | /// </summary> |
| 2277 | 24 | | public CIFSMountConfiguration() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 2277 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the CIFSMountConfiguration class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="username">The user to use for authentication against |
| | 33 | | /// the CIFS file system.</param> |
| | 34 | | /// <param name="source">The URI of the file system to mount.</param> |
| | 35 | | /// <param name="relativeMountPath">The relative path on the compute |
| | 36 | | /// node where the file system will be mounted</param> |
| | 37 | | /// <param name="password">The password to use for authentication |
| | 38 | | /// against the CIFS file system.</param> |
| | 39 | | /// <param name="mountOptions">Additional command line options to pass |
| | 40 | | /// to the mount command.</param> |
| 0 | 41 | | public CIFSMountConfiguration(string username, string source, string relativeMountPath, string password, string |
| | 42 | | { |
| 0 | 43 | | Username = username; |
| 0 | 44 | | Source = source; |
| 0 | 45 | | RelativeMountPath = relativeMountPath; |
| 0 | 46 | | MountOptions = mountOptions; |
| 0 | 47 | | Password = password; |
| | 48 | | CustomInit(); |
| 0 | 49 | | } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// An initialization method that performs custom operations like setting defaults |
| | 53 | | /// </summary> |
| | 54 | | partial void CustomInit(); |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or sets the user to use for authentication against the CIFS |
| | 58 | | /// file system. |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "username")] |
| 5227 | 61 | | public string Username { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the URI of the file system to mount. |
| | 65 | | /// </summary> |
| | 66 | | [JsonProperty(PropertyName = "source")] |
| 5206 | 67 | | public string Source { get; set; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets the relative path on the compute node where the file |
| | 71 | | /// system will be mounted |
| | 72 | | /// </summary> |
| | 73 | | /// <remarks> |
| | 74 | | /// All file systems are mounted relative to the Batch mounts |
| | 75 | | /// directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment |
| | 76 | | /// variable. |
| | 77 | | /// </remarks> |
| | 78 | | [JsonProperty(PropertyName = "relativeMountPath")] |
| 5216 | 79 | | public string RelativeMountPath { get; set; } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Gets or sets additional command line options to pass to the mount |
| | 83 | | /// command. |
| | 84 | | /// </summary> |
| | 85 | | /// <remarks> |
| | 86 | | /// These are 'net use' options in Windows and 'mount' options in |
| | 87 | | /// Linux. |
| | 88 | | /// </remarks> |
| | 89 | | [JsonProperty(PropertyName = "mountOptions")] |
| 5228 | 90 | | public string MountOptions { get; set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets or sets the password to use for authentication against the |
| | 94 | | /// CIFS file system. |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "password")] |
| 5220 | 97 | | public string Password { get; set; } |
| | 98 | |
|
| | 99 | | } |
| | 100 | | } |