< Summary

Class:Microsoft.Azure.Batch.MountConfiguration
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\MountConfiguration.cs
C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\MountConfiguration.cs
Covered lines:34
Uncovered lines:26
Coverable lines:60
Total lines:198
Line coverage:56.6% (34 of 60)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
.ctor(...)-0%100%
.ctor(...)-0%100%
.ctor(...)-100%100%
.ctor(...)-100%100%
.ctor(...)-100%100%
get_AzureBlobFileSystemConfiguration()-100%100%
get_AzureFileShareConfiguration()-100%100%
get_CifsMountConfiguration()-100%100%
get_NfsMountConfiguration()-100%100%
Microsoft.Azure.Batch.IModifiable.get_HasBeenModified()-0%100%
Microsoft.Azure.Batch.IReadOnly.get_IsReadOnly()-0%100%
Microsoft.Azure.Batch.IReadOnly.set_IsReadOnly(...)-100%100%
Microsoft.Azure.Batch.ITransportObjectProvider<Microsoft.Azure.Batch.Protocol.Models.MountConfiguration>.GetTransportObject()-100%100%
ConvertFromProtocolCollection(...)-0%100%
ConvertFromProtocolCollectionAndFreeze(...)-100%100%
ConvertFromProtocolCollectionReadOnly(...)-0%100%
.ctor(...)-0%100%
.ctor(...)-0%100%
.ctor(...)-0%100%
.ctor(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\MountConfiguration.cs

#LineLine coverage
 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
 013namespace Microsoft.Azure.Batch
 14{
 015    using Models = Microsoft.Azure.Batch.Protocol.Models;
 16    using System;
 17    using System.Collections.Generic;
 18    using System.Linq;
 19
 020    /// <summary>
 21    /// The file system to mount on each node.
 022    /// </summary>
 23    public partial class MountConfiguration : ITransportObjectProvider<Models.MountConfiguration>, IPropertyMetadata
 24    {
 25        #region Constructors
 26        /// <summary>
 027        /// Initializes a new instance of the <see cref="MountConfiguration"/> class.
 28        /// </summary>
 029        /// <param name='azureBlobFileSystemConfiguration'>The Azure Storage Container to mount using blob FUSE on each 
 30        /// <param name='nfsMountConfiguration'>The NFS file system to mount on each node.</param>
 31        /// <param name='cifsMountConfiguration'>The CIFS/SMB file system to mount on each node.</param>
 32        /// <param name='azureFileShareConfiguration'>The Azure File Share to mount on each node.</param>
 83433        internal MountConfiguration(
 83434            AzureBlobFileSystemConfiguration azureBlobFileSystemConfiguration = default(AzureBlobFileSystemConfiguration
 83435            NfsMountConfiguration nfsMountConfiguration = default(NfsMountConfiguration),
 83436            CifsMountConfiguration cifsMountConfiguration = default(CifsMountConfiguration),
 83437            AzureFileShareConfiguration azureFileShareConfiguration = default(AzureFileShareConfiguration))
 38        {
 83439            this.AzureBlobFileSystemConfiguration = azureBlobFileSystemConfiguration;
 83440            this.NfsMountConfiguration = nfsMountConfiguration;
 83441            this.CifsMountConfiguration = cifsMountConfiguration;
 83442            this.AzureFileShareConfiguration = azureFileShareConfiguration;
 83443        }
 44
 268445        internal MountConfiguration(Models.MountConfiguration protocolObject)
 46        {
 405647            this.AzureBlobFileSystemConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.AzureBlob
 403548            this.AzureFileShareConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.AzureFileShare
 402849            this.CifsMountConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.CifsMountConfigurat
 404750            this.NfsMountConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.NfsMountConfiguratio
 268451        }
 52
 53        #endregion Constructors
 54
 55        #region MountConfiguration
 56
 57        /// <summary>
 58        /// Gets the Azure Storage Container to mount using blob FUSE on each node.
 59        /// </summary>
 435160        public AzureBlobFileSystemConfiguration AzureBlobFileSystemConfiguration { get; }
 61
 62        /// <summary>
 63        /// Gets the Azure File Share to mount on each node.
 64        /// </summary>
 435165        public AzureFileShareConfiguration AzureFileShareConfiguration { get; }
 66
 67        /// <summary>
 68        /// Gets the CIFS/SMB file system to mount on each node.
 69        /// </summary>
 435170        public CifsMountConfiguration CifsMountConfiguration { get; }
 71
 72        /// <summary>
 73        /// Gets the NFS file system to mount on each node.
 74        /// </summary>
 435175        public NfsMountConfiguration NfsMountConfiguration { get; }
 76
 77        #endregion // MountConfiguration
 78
 79        #region IPropertyMetadata
 80
 81        bool IModifiable.HasBeenModified
 82        {
 83            //This class is compile time readonly so it cannot have been modified
 084            get { return false; }
 85        }
 86
 87        bool IReadOnly.IsReadOnly
 88        {
 089            get { return true; }
 90            set
 91            {
 92                // This class is compile time readonly already
 878693            }
 94        }
 95
 96        #endregion // IPropertyMetadata
 97
 98        #region Internal/private methods
 99
 100        /// <summary>
 101        /// Return a protocol object of the requested type.
 102        /// </summary>
 103        /// <returns>The protocol object of the requested type.</returns>
 104        Models.MountConfiguration ITransportObjectProvider<Models.MountConfiguration>.GetTransportObject()
 105        {
 833106            Models.MountConfiguration result = new Models.MountConfiguration()
 833107            {
 1666108                AzureBlobFileSystemConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(this.AzureBlobFileSystemC
 1666109                AzureFileShareConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(this.AzureFileShareConfigurati
 1666110                CifsMountConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(this.CifsMountConfiguration, (o) =>
 1666111                NfsMountConfiguration = UtilitiesInternal.CreateObjectWithNullCheck(this.NfsMountConfiguration, (o) => o
 833112            };
 113
 833114            return result;
 115        }
 116
 117        /// <summary>
 118        /// Converts a collection of protocol layer objects to object layer collection objects.
 119        /// </summary>
 120        internal static IList<MountConfiguration> ConvertFromProtocolCollection(IEnumerable<Models.MountConfiguration> p
 121        {
 0122            ConcurrentChangeTrackedModifiableList<MountConfiguration> converted = UtilitiesInternal.CollectionToThreadSa
 0123                items: protoCollection,
 0124                objectCreationFunc: o => new MountConfiguration(o));
 125
 0126            return converted;
 127        }
 128
 129        /// <summary>
 130        /// Converts a collection of protocol layer objects to object layer collection objects, in a frozen state.
 131        /// </summary>
 132        internal static IList<MountConfiguration> ConvertFromProtocolCollectionAndFreeze(IEnumerable<Models.MountConfigu
 133        {
 1224134            ConcurrentChangeTrackedModifiableList<MountConfiguration> converted = UtilitiesInternal.CollectionToThreadSa
 1224135                items: protoCollection,
 3908136                objectCreationFunc: o => new MountConfiguration(o).Freeze());
 137
 1810138            converted = UtilitiesInternal.CreateObjectWithNullCheck(converted, o => o.Freeze());
 139
 1224140            return converted;
 141        }
 142
 143        /// <summary>
 144        /// Converts a collection of protocol layer objects to object layer collection objects, with each object marked 
 145        /// and returned as a readonly collection.
 146        /// </summary>
 147        internal static IReadOnlyList<MountConfiguration> ConvertFromProtocolCollectionReadOnly(IEnumerable<Models.Mount
 148        {
 0149            IReadOnlyList<MountConfiguration> converted =
 0150                UtilitiesInternal.CreateObjectWithNullCheck(
 0151                    UtilitiesInternal.CollectionToNonThreadSafeCollection(
 0152                        items: protoCollection,
 0153                        objectCreationFunc: o => new MountConfiguration(o).Freeze()), o => o.AsReadOnly());
 154
 0155            return converted;
 156        }
 157
 158        #endregion // Internal/private methods
 159    }
 160}

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\MountConfiguration.cs

#LineLine coverage
 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
 4namespace Microsoft.Azure.Batch
 5{
 6    using System;
 7
 8    public partial class MountConfiguration
 9    {
 10        /// <summary>
 11        /// Initializes a new instance of the <see cref="MountConfiguration"/> class with an <see cref="AzureBlobFileSys
 12        /// </summary>
 013        public MountConfiguration(AzureBlobFileSystemConfiguration configuration) : this(azureBlobFileSystemConfiguratio
 14        {
 015        }
 16
 17        /// <summary>
 18        /// Initializes a new instance of the <see cref="MountConfiguration"/> class with an <see cref="AzureFileShareCo
 19        /// </summary>
 020        public MountConfiguration(AzureFileShareConfiguration configuration) : this(azureFileShareConfiguration: configu
 21        {
 022        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the <see cref="MountConfiguration"/> class with an <see cref="NfsMountConfigur
 26        /// </summary>
 027        public MountConfiguration(NfsMountConfiguration configuration) : this(nfsMountConfiguration: configuration)
 28        {
 029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the <see cref="MountConfiguration"/> class with an <see cref="CifsMountConfigu
 33        /// </summary>
 034        public MountConfiguration(CifsMountConfiguration configuration) : this(cifsMountConfiguration: configuration)
 35        {
 036        }
 37    }
 38}