< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_PreparationStartedAt()-0%100%
get_ResourceAcquisitionStartedAt()-0%100%
get_SubmissionStartedAt()-0%100%
get_MonitoringStartedAt()-0%100%
get_CleanupStartedAt()-0%100%
get_CurrentState()-0%100%
DeserializeSparkServicePlugin(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkServicePlugin.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 SparkServicePlugin. </summary>
 13    public partial class SparkServicePlugin
 14    {
 15        /// <summary> Initializes a new instance of SparkServicePlugin. </summary>
 016        internal SparkServicePlugin()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of SparkServicePlugin. </summary>
 21        /// <param name="preparationStartedAt"> . </param>
 22        /// <param name="resourceAcquisitionStartedAt"> . </param>
 23        /// <param name="submissionStartedAt"> . </param>
 24        /// <param name="monitoringStartedAt"> . </param>
 25        /// <param name="cleanupStartedAt"> . </param>
 26        /// <param name="currentState"> . </param>
 027        internal SparkServicePlugin(DateTimeOffset? preparationStartedAt, DateTimeOffset? resourceAcquisitionStartedAt, 
 28        {
 029            PreparationStartedAt = preparationStartedAt;
 030            ResourceAcquisitionStartedAt = resourceAcquisitionStartedAt;
 031            SubmissionStartedAt = submissionStartedAt;
 032            MonitoringStartedAt = monitoringStartedAt;
 033            CleanupStartedAt = cleanupStartedAt;
 034            CurrentState = currentState;
 035        }
 36
 037        public DateTimeOffset? PreparationStartedAt { get; }
 038        public DateTimeOffset? ResourceAcquisitionStartedAt { get; }
 039        public DateTimeOffset? SubmissionStartedAt { get; }
 040        public DateTimeOffset? MonitoringStartedAt { get; }
 041        public DateTimeOffset? CleanupStartedAt { get; }
 042        public PluginCurrentState? CurrentState { get; }
 43    }
 44}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Spark\src\Generated\Models\SparkServicePlugin.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 SparkServicePlugin
 15    {
 16        internal static SparkServicePlugin DeserializeSparkServicePlugin(JsonElement element)
 17        {
 018            Optional<DateTimeOffset> preparationStartedAt = default;
 019            Optional<DateTimeOffset> resourceAcquisitionStartedAt = default;
 020            Optional<DateTimeOffset> submissionStartedAt = default;
 021            Optional<DateTimeOffset> monitoringStartedAt = default;
 022            Optional<DateTimeOffset> cleanupStartedAt = default;
 023            Optional<PluginCurrentState> currentState = default;
 024            foreach (var property in element.EnumerateObject())
 25            {
 026                if (property.NameEquals("preparationStartedAt"))
 27                {
 028                    preparationStartedAt = property.Value.GetDateTimeOffset("O");
 029                    continue;
 30                }
 031                if (property.NameEquals("resourceAcquisitionStartedAt"))
 32                {
 033                    resourceAcquisitionStartedAt = property.Value.GetDateTimeOffset("O");
 034                    continue;
 35                }
 036                if (property.NameEquals("submissionStartedAt"))
 37                {
 038                    submissionStartedAt = property.Value.GetDateTimeOffset("O");
 039                    continue;
 40                }
 041                if (property.NameEquals("monitoringStartedAt"))
 42                {
 043                    monitoringStartedAt = property.Value.GetDateTimeOffset("O");
 044                    continue;
 45                }
 046                if (property.NameEquals("cleanupStartedAt"))
 47                {
 048                    cleanupStartedAt = property.Value.GetDateTimeOffset("O");
 049                    continue;
 50                }
 051                if (property.NameEquals("currentState"))
 52                {
 053                    currentState = new PluginCurrentState(property.Value.GetString());
 54                    continue;
 55                }
 56            }
 057            return new SparkServicePlugin(Optional.ToNullable(preparationStartedAt), Optional.ToNullable(resourceAcquisi
 58        }
 59    }
 60}