< Summary

Class:Microsoft.Azure.HDInsight.Job.Models.SparkSessionCollection
Assembly:Microsoft.Azure.HDInsight.Job
File(s):C:\Git\azure-sdk-for-net\sdk\hdinsight\Microsoft.Azure.HDInsight.Job\src\Generated\Models\SparkSessionCollection.cs
Covered lines:5
Uncovered lines:5
Coverable lines:10
Total lines:60
Line coverage:50% (5 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_FromProperty()-100%100%
get_Total()-100%100%
get_Sessions()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\hdinsight\Microsoft.Azure.HDInsight.Job\src\Generated\Models\SparkSessionCollection.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.HDInsight.Job.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    public partial class SparkSessionCollection
 19    {
 20        /// <summary>
 21        /// Initializes a new instance of the SparkSessionCollection class.
 22        /// </summary>
 1023        public SparkSessionCollection()
 24        {
 25            CustomInit();
 1026        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the SparkSessionCollection class.
 30        /// </summary>
 031        public SparkSessionCollection(int? fromProperty = default(int?), int? total = default(int?), IList<SparkSessionJ
 32        {
 033            FromProperty = fromProperty;
 034            Total = total;
 035            Sessions = sessions;
 36            CustomInit();
 037        }
 38
 39        /// <summary>
 40        /// An initialization method that performs custom operations like setting defaults
 41        /// </summary>
 42        partial void CustomInit();
 43
 44        /// <summary>
 45        /// </summary>
 46        [JsonProperty(PropertyName = "from")]
 1247        public int? FromProperty { get; set; }
 48
 49        /// <summary>
 50        /// </summary>
 51        [JsonProperty(PropertyName = "total")]
 1852        public int? Total { get; set; }
 53
 54        /// <summary>
 55        /// </summary>
 56        [JsonProperty(PropertyName = "sessions")]
 2257        public IList<SparkSessionJob> Sessions { get; set; }
 58
 59    }
 60}