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