< Summary

Class:Microsoft.Azure.Batch.RemoteLoginSettings
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\RemoteLoginSettings.cs
Covered lines:7
Uncovered lines:2
Coverable lines:9
Total lines:68
Line coverage:77.7% (7 of 9)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_IPAddress()-100%100%
get_Port()-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%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\RemoteLoginSettings.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
 13namespace 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    /// Gets the settings required for remote login to a compute node.
 22    /// </summary>
 23    public partial class RemoteLoginSettings : IPropertyMetadata
 24    {
 25        #region Constructors
 26
 127        internal RemoteLoginSettings(Models.ComputeNodeGetRemoteLoginSettingsResult protocolObject)
 28        {
 129            this.IPAddress = protocolObject.RemoteLoginIPAddress;
 130            this.Port = protocolObject.RemoteLoginPort;
 131        }
 32
 33        #endregion Constructors
 34
 35        #region RemoteLoginSettings
 36
 37        /// <summary>
 38        /// Gets the IP address used for remote login to the compute node.
 39        /// </summary>
 140        public string IPAddress { get; }
 41
 42        /// <summary>
 43        /// Gets the port used for remote login to the compute node.
 44        /// </summary>
 145        public int Port { get; }
 46
 47        #endregion // RemoteLoginSettings
 48
 49        #region IPropertyMetadata
 50
 51        bool IModifiable.HasBeenModified
 52        {
 53            //This class is compile time readonly so it cannot have been modified
 054            get { return false; }
 55        }
 56
 57        bool IReadOnly.IsReadOnly
 58        {
 059            get { return true; }
 60            set
 61            {
 62                // This class is compile time readonly already
 163            }
 64        }
 65
 66        #endregion // IPropertyMetadata
 67    }
 68}