< Summary

Class:Microsoft.Azure.Batch.JobExecutionInformation
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\JobExecutionInformation.cs
Covered lines:13
Uncovered lines:2
Coverable lines:15
Total lines:86
Line coverage:86.6% (13 of 15)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_EndTime()-100%100%
get_PoolId()-100%100%
get_SchedulingError()-100%100%
get_StartTime()-100%100%
get_TerminateReason()-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\JobExecutionInformation.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    /// Information about the execution of an Azure Batch job.
 22    /// </summary>
 23    public partial class JobExecutionInformation : IPropertyMetadata
 24    {
 25        #region Constructors
 26
 51627        internal JobExecutionInformation(Models.JobExecutionInformation protocolObject)
 28        {
 51629            this.EndTime = protocolObject.EndTime;
 51630            this.PoolId = protocolObject.PoolId;
 79631            this.SchedulingError = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new 
 51632            this.StartTime = protocolObject.StartTime;
 51633            this.TerminateReason = protocolObject.TerminateReason;
 51634        }
 35
 36        #endregion Constructors
 37
 38        #region JobExecutionInformation
 39
 40        /// <summary>
 41        /// Gets the completion time of this job.
 42        /// </summary>
 51643        public DateTime? EndTime { get; }
 44
 45        /// <summary>
 46        /// Gets the pool Id of this job.
 47        /// </summary>
 51648        public string PoolId { get; }
 49
 50        /// <summary>
 51        /// Gets the error encountered by the Batch service in scheduling the job.
 52        /// </summary>
 51653        public JobSchedulingError SchedulingError { get; }
 54
 55        /// <summary>
 56        /// Gets the creation time of the job.
 57        /// </summary>
 51658        public DateTime StartTime { get; }
 59
 60        /// <summary>
 61        /// Gets the reason for job moving to completed state.
 62        /// </summary>
 51663        public string TerminateReason { get; }
 64
 65        #endregion // JobExecutionInformation
 66
 67        #region IPropertyMetadata
 68
 69        bool IModifiable.HasBeenModified
 70        {
 71            //This class is compile time readonly so it cannot have been modified
 072            get { return false; }
 73        }
 74
 75        bool IReadOnly.IsReadOnly
 76        {
 077            get { return true; }
 78            set
 79            {
 80                // This class is compile time readonly already
 51681            }
 82        }
 83
 84        #endregion // IPropertyMetadata
 85    }
 86}