< Summary

Class:Azure.Analytics.Synapse.Spark.Models.SparkSessionState
Assembly:Azure.Analytics.Synapse.Spark
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkSessionState.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkSessionState.Serialization.cs
Covered lines:0
Uncovered lines:71
Coverable lines:71
Total lines:150
Line coverage:0% (0 of 71)
Covered branches:0
Total branches:24
Branch coverage:0% (0 of 24)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_NotStartedAt()-0%100%
get_StartingAt()-0%100%
get_IdleAt()-0%100%
get_DeadAt()-0%100%
get_ShuttingDownAt()-0%100%
get_TerminatedAt()-0%100%
get_RecoveringAt()-0%100%
get_BusyAt()-0%100%
get_ErrorAt()-0%100%
get_CurrentState()-0%100%
get_JobCreationRequest()-0%100%
DeserializeSparkSessionState(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkSessionState.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9
 10namespace Azure.Analytics.Synapse.Spark.Models
 11{
 12    /// <summary> The SparkSessionState. </summary>
 13    public partial class SparkSessionState
 14    {
 15        /// <summary> Initializes a new instance of SparkSessionState. </summary>
 016        internal SparkSessionState()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of SparkSessionState. </summary>
 21        /// <param name="notStartedAt"> . </param>
 22        /// <param name="startingAt"> . </param>
 23        /// <param name="idleAt"> . </param>
 24        /// <param name="deadAt"> . </param>
 25        /// <param name="shuttingDownAt"> . </param>
 26        /// <param name="terminatedAt"> the time that at which &quot;killed&quot; livy state was first seen. </param>
 27        /// <param name="recoveringAt"> . </param>
 28        /// <param name="busyAt"> . </param>
 29        /// <param name="errorAt"> . </param>
 30        /// <param name="currentState"> . </param>
 31        /// <param name="jobCreationRequest"> . </param>
 032        internal SparkSessionState(DateTimeOffset? notStartedAt, DateTimeOffset? startingAt, DateTimeOffset? idleAt, Dat
 33        {
 034            NotStartedAt = notStartedAt;
 035            StartingAt = startingAt;
 036            IdleAt = idleAt;
 037            DeadAt = deadAt;
 038            ShuttingDownAt = shuttingDownAt;
 039            TerminatedAt = terminatedAt;
 040            RecoveringAt = recoveringAt;
 041            BusyAt = busyAt;
 042            ErrorAt = errorAt;
 043            CurrentState = currentState;
 044            JobCreationRequest = jobCreationRequest;
 045        }
 46
 047        public DateTimeOffset? NotStartedAt { get; }
 048        public DateTimeOffset? StartingAt { get; }
 049        public DateTimeOffset? IdleAt { get; }
 050        public DateTimeOffset? DeadAt { get; }
 051        public DateTimeOffset? ShuttingDownAt { get; }
 52        /// <summary> the time that at which &quot;killed&quot; livy state was first seen. </summary>
 053        public DateTimeOffset? TerminatedAt { get; }
 054        public DateTimeOffset? RecoveringAt { get; }
 055        public DateTimeOffset? BusyAt { get; }
 056        public DateTimeOffset? ErrorAt { get; }
 057        public string CurrentState { get; }
 058        public SparkRequest JobCreationRequest { get; }
 59    }
 60}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkSessionState.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.Analytics.Synapse.Spark.Models
 13{
 14    public partial class SparkSessionState
 15    {
 16        internal static SparkSessionState DeserializeSparkSessionState(JsonElement element)
 17        {
 018            Optional<DateTimeOffset> notStartedAt = default;
 019            Optional<DateTimeOffset> startingAt = default;
 020            Optional<DateTimeOffset> idleAt = default;
 021            Optional<DateTimeOffset> deadAt = default;
 022            Optional<DateTimeOffset> shuttingDownAt = default;
 023            Optional<DateTimeOffset> killedAt = default;
 024            Optional<DateTimeOffset> recoveringAt = default;
 025            Optional<DateTimeOffset> busyAt = default;
 026            Optional<DateTimeOffset> errorAt = default;
 027            Optional<string> currentState = default;
 028            Optional<SparkRequest> jobCreationRequest = default;
 029            foreach (var property in element.EnumerateObject())
 30            {
 031                if (property.NameEquals("notStartedAt"))
 32                {
 033                    notStartedAt = property.Value.GetDateTimeOffset("O");
 034                    continue;
 35                }
 036                if (property.NameEquals("startingAt"))
 37                {
 038                    startingAt = property.Value.GetDateTimeOffset("O");
 039                    continue;
 40                }
 041                if (property.NameEquals("idleAt"))
 42                {
 043                    idleAt = property.Value.GetDateTimeOffset("O");
 044                    continue;
 45                }
 046                if (property.NameEquals("deadAt"))
 47                {
 048                    deadAt = property.Value.GetDateTimeOffset("O");
 049                    continue;
 50                }
 051                if (property.NameEquals("shuttingDownAt"))
 52                {
 053                    shuttingDownAt = property.Value.GetDateTimeOffset("O");
 054                    continue;
 55                }
 056                if (property.NameEquals("killedAt"))
 57                {
 058                    killedAt = property.Value.GetDateTimeOffset("O");
 059                    continue;
 60                }
 061                if (property.NameEquals("recoveringAt"))
 62                {
 063                    recoveringAt = property.Value.GetDateTimeOffset("O");
 064                    continue;
 65                }
 066                if (property.NameEquals("busyAt"))
 67                {
 068                    busyAt = property.Value.GetDateTimeOffset("O");
 069                    continue;
 70                }
 071                if (property.NameEquals("errorAt"))
 72                {
 073                    errorAt = property.Value.GetDateTimeOffset("O");
 074                    continue;
 75                }
 076                if (property.NameEquals("currentState"))
 77                {
 078                    currentState = property.Value.GetString();
 079                    continue;
 80                }
 081                if (property.NameEquals("jobCreationRequest"))
 82                {
 083                    jobCreationRequest = SparkRequest.DeserializeSparkRequest(property.Value);
 84                    continue;
 85                }
 86            }
 087            return new SparkSessionState(Optional.ToNullable(notStartedAt), Optional.ToNullable(startingAt), Optional.To
 88        }
 89    }
 90}