< Summary

Class:Microsoft.Azure.Batch.PoolNodeCounts
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\PoolNodeCounts.cs
Covered lines:8
Uncovered lines:3
Coverable lines:11
Total lines:74
Line coverage:72.7% (8 of 11)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-80%100%
get_Dedicated()-100%100%
get_LowPriority()-100%100%
get_PoolId()-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\PoolNodeCounts.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    /// A pool in the Azure Batch service.
 22    /// </summary>
 23    public partial class PoolNodeCounts : IPropertyMetadata
 24    {
 25        #region Constructors
 26
 127        internal PoolNodeCounts(Models.PoolNodeCounts protocolObject)
 28        {
 029            this.Dedicated = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Dedicated, o => new NodeCounts(o
 230            this.LowPriority = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.LowPriority, o => new NodeCoun
 131            this.PoolId = protocolObject.PoolId;
 132        }
 33
 34        #endregion Constructors
 35
 36        #region PoolNodeCounts
 37
 38        /// <summary>
 39        /// Gets the number of dedicated nodes in each state.
 40        /// </summary>
 141        public NodeCounts Dedicated { get; }
 42
 43        /// <summary>
 44        /// Gets the number of low-priority nodes in each state.
 45        /// </summary>
 146        public NodeCounts LowPriority { get; }
 47
 48        /// <summary>
 49        /// Gets the ID of the pool.
 50        /// </summary>
 151        public string PoolId { get; }
 52
 53        #endregion // PoolNodeCounts
 54
 55        #region IPropertyMetadata
 56
 57        bool IModifiable.HasBeenModified
 58        {
 59            //This class is compile time readonly so it cannot have been modified
 060            get { return false; }
 61        }
 62
 63        bool IReadOnly.IsReadOnly
 64        {
 065            get { return true; }
 66            set
 67            {
 68                // This class is compile time readonly already
 169            }
 70        }
 71
 72        #endregion // IPropertyMetadata
 73    }
 74}