< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_NotStartedAt()-0%100%
get_StartingAt()-0%100%
get_RunningAt()-0%100%
get_DeadAt()-0%100%
get_SuccessAt()-0%100%
get_TerminatedAt()-0%100%
get_RecoveringAt()-0%100%
get_CurrentState()-0%100%
get_JobCreationRequest()-0%100%
DeserializeSparkBatchJobState(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkBatchJobState.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 SparkBatchJobState. </summary>
 13    public partial class SparkBatchJobState
 14    {
 15        /// <summary> Initializes a new instance of SparkBatchJobState. </summary>
 016        internal SparkBatchJobState()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of SparkBatchJobState. </summary>
 21        /// <param name="notStartedAt"> the time that at which &quot;not_started&quot; livy state was first seen. </para
 22        /// <param name="startingAt"> the time that at which &quot;starting&quot; livy state was first seen. </param>
 23        /// <param name="runningAt"> the time that at which &quot;running&quot; livy state was first seen. </param>
 24        /// <param name="deadAt"> time that at which &quot;dead&quot; livy state was first seen. </param>
 25        /// <param name="successAt"> the time that at which &quot;success&quot; livy state was first seen. </param>
 26        /// <param name="terminatedAt"> the time that at which &quot;killed&quot; livy state was first seen. </param>
 27        /// <param name="recoveringAt"> the time that at which &quot;recovering&quot; livy state was first seen. </param
 28        /// <param name="currentState"> the Spark job state. </param>
 29        /// <param name="jobCreationRequest"> . </param>
 030        internal SparkBatchJobState(DateTimeOffset? notStartedAt, DateTimeOffset? startingAt, DateTimeOffset? runningAt,
 31        {
 032            NotStartedAt = notStartedAt;
 033            StartingAt = startingAt;
 034            RunningAt = runningAt;
 035            DeadAt = deadAt;
 036            SuccessAt = successAt;
 037            TerminatedAt = terminatedAt;
 038            RecoveringAt = recoveringAt;
 039            CurrentState = currentState;
 040            JobCreationRequest = jobCreationRequest;
 041        }
 42
 43        /// <summary> the time that at which &quot;not_started&quot; livy state was first seen. </summary>
 044        public DateTimeOffset? NotStartedAt { get; }
 45        /// <summary> the time that at which &quot;starting&quot; livy state was first seen. </summary>
 046        public DateTimeOffset? StartingAt { get; }
 47        /// <summary> the time that at which &quot;running&quot; livy state was first seen. </summary>
 048        public DateTimeOffset? RunningAt { get; }
 49        /// <summary> time that at which &quot;dead&quot; livy state was first seen. </summary>
 050        public DateTimeOffset? DeadAt { get; }
 51        /// <summary> the time that at which &quot;success&quot; livy state was first seen. </summary>
 052        public DateTimeOffset? SuccessAt { get; }
 53        /// <summary> the time that at which &quot;killed&quot; livy state was first seen. </summary>
 054        public DateTimeOffset? TerminatedAt { get; }
 55        /// <summary> the time that at which &quot;recovering&quot; livy state was first seen. </summary>
 056        public DateTimeOffset? RecoveringAt { get; }
 57        /// <summary> the Spark job state. </summary>
 058        public string CurrentState { get; }
 059        public SparkRequest JobCreationRequest { get; }
 60    }
 61}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkBatchJobState.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 SparkBatchJobState
 15    {
 16        internal static SparkBatchJobState DeserializeSparkBatchJobState(JsonElement element)
 17        {
 018            Optional<DateTimeOffset> notStartedAt = default;
 019            Optional<DateTimeOffset> startingAt = default;
 020            Optional<DateTimeOffset> runningAt = default;
 021            Optional<DateTimeOffset> deadAt = default;
 022            Optional<DateTimeOffset> successAt = default;
 023            Optional<DateTimeOffset> killedAt = default;
 024            Optional<DateTimeOffset> recoveringAt = default;
 025            Optional<string> currentState = default;
 026            Optional<SparkRequest> jobCreationRequest = default;
 027            foreach (var property in element.EnumerateObject())
 28            {
 029                if (property.NameEquals("notStartedAt"))
 30                {
 031                    notStartedAt = property.Value.GetDateTimeOffset("O");
 032                    continue;
 33                }
 034                if (property.NameEquals("startingAt"))
 35                {
 036                    startingAt = property.Value.GetDateTimeOffset("O");
 037                    continue;
 38                }
 039                if (property.NameEquals("runningAt"))
 40                {
 041                    runningAt = property.Value.GetDateTimeOffset("O");
 042                    continue;
 43                }
 044                if (property.NameEquals("deadAt"))
 45                {
 046                    deadAt = property.Value.GetDateTimeOffset("O");
 047                    continue;
 48                }
 049                if (property.NameEquals("successAt"))
 50                {
 051                    successAt = property.Value.GetDateTimeOffset("O");
 052                    continue;
 53                }
 054                if (property.NameEquals("killedAt"))
 55                {
 056                    killedAt = property.Value.GetDateTimeOffset("O");
 057                    continue;
 58                }
 059                if (property.NameEquals("recoveringAt"))
 60                {
 061                    recoveringAt = property.Value.GetDateTimeOffset("O");
 062                    continue;
 63                }
 064                if (property.NameEquals("currentState"))
 65                {
 066                    currentState = property.Value.GetString();
 067                    continue;
 68                }
 069                if (property.NameEquals("jobCreationRequest"))
 70                {
 071                    jobCreationRequest = SparkRequest.DeserializeSparkRequest(property.Value);
 72                    continue;
 73                }
 74            }
 075            return new SparkBatchJobState(Optional.ToNullable(notStartedAt), Optional.ToNullable(startingAt), Optional.T
 76        }
 77    }
 78}