< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.SparkScheduler
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SparkScheduler.cs
C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SparkScheduler.Serialization.cs
Covered lines:0
Uncovered lines:35
Coverable lines:35
Total lines:95
Line coverage:0% (0 of 35)
Covered branches:0
Total branches:12
Branch coverage:0% (0 of 12)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_SubmittedAt()-0%100%
get_ScheduledAt()-0%100%
get_EndedAt()-0%100%
get_CancellationRequestedAt()-0%100%
get_CurrentState()-0%100%
DeserializeSparkScheduler(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SparkScheduler.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.Artifacts.Models
 11{
 12    /// <summary> The SparkScheduler. </summary>
 13    public partial class SparkScheduler
 14    {
 15        /// <summary> Initializes a new instance of SparkScheduler. </summary>
 016        internal SparkScheduler()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of SparkScheduler. </summary>
 21        /// <param name="submittedAt"> . </param>
 22        /// <param name="scheduledAt"> . </param>
 23        /// <param name="endedAt"> . </param>
 24        /// <param name="cancellationRequestedAt"> . </param>
 25        /// <param name="currentState"> . </param>
 026        internal SparkScheduler(DateTimeOffset? submittedAt, DateTimeOffset? scheduledAt, DateTimeOffset? endedAt, DateT
 27        {
 028            SubmittedAt = submittedAt;
 029            ScheduledAt = scheduledAt;
 030            EndedAt = endedAt;
 031            CancellationRequestedAt = cancellationRequestedAt;
 032            CurrentState = currentState;
 033        }
 34
 035        public DateTimeOffset? SubmittedAt { get; }
 036        public DateTimeOffset? ScheduledAt { get; }
 037        public DateTimeOffset? EndedAt { get; }
 038        public DateTimeOffset? CancellationRequestedAt { get; }
 039        public SchedulerCurrentState? CurrentState { get; }
 40    }
 41}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\SparkScheduler.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.Artifacts.Models
 13{
 14    public partial class SparkScheduler
 15    {
 16        internal static SparkScheduler DeserializeSparkScheduler(JsonElement element)
 17        {
 018            Optional<DateTimeOffset> submittedAt = default;
 019            Optional<DateTimeOffset> scheduledAt = default;
 020            Optional<DateTimeOffset> endedAt = default;
 021            Optional<DateTimeOffset> cancellationRequestedAt = default;
 022            Optional<SchedulerCurrentState> currentState = default;
 023            foreach (var property in element.EnumerateObject())
 24            {
 025                if (property.NameEquals("submittedAt"))
 26                {
 027                    submittedAt = property.Value.GetDateTimeOffset("O");
 028                    continue;
 29                }
 030                if (property.NameEquals("scheduledAt"))
 31                {
 032                    scheduledAt = property.Value.GetDateTimeOffset("O");
 033                    continue;
 34                }
 035                if (property.NameEquals("endedAt"))
 36                {
 037                    endedAt = property.Value.GetDateTimeOffset("O");
 038                    continue;
 39                }
 040                if (property.NameEquals("cancellationRequestedAt"))
 41                {
 042                    cancellationRequestedAt = property.Value.GetDateTimeOffset("O");
 043                    continue;
 44                }
 045                if (property.NameEquals("currentState"))
 46                {
 047                    currentState = new SchedulerCurrentState(property.Value.GetString());
 48                    continue;
 49                }
 50            }
 051            return new SparkScheduler(Optional.ToNullable(submittedAt), Optional.ToNullable(scheduledAt), Optional.ToNul
 52        }
 53    }
 54}