< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_TriggerName()-0%100%
get_Status()-0%100%
DeserializeTriggerSubscriptionOperationStatus(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerSubscriptionOperationStatus.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
 8namespace Azure.Analytics.Synapse.Artifacts.Models
 9{
 10    /// <summary> Defines the response of a trigger subscription operation. </summary>
 11    public partial class TriggerSubscriptionOperationStatus
 12    {
 13        /// <summary> Initializes a new instance of TriggerSubscriptionOperationStatus. </summary>
 014        internal TriggerSubscriptionOperationStatus()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of TriggerSubscriptionOperationStatus. </summary>
 19        /// <param name="triggerName"> Trigger name. </param>
 20        /// <param name="status"> Event Subscription Status. </param>
 021        internal TriggerSubscriptionOperationStatus(string triggerName, EventSubscriptionStatus? status)
 22        {
 023            TriggerName = triggerName;
 024            Status = status;
 025        }
 26
 27        /// <summary> Trigger name. </summary>
 028        public string TriggerName { get; }
 29        /// <summary> Event Subscription Status. </summary>
 030        public EventSubscriptionStatus? Status { get; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\TriggerSubscriptionOperationStatus.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Analytics.Synapse.Artifacts.Models
 12{
 13    public partial class TriggerSubscriptionOperationStatus
 14    {
 15        internal static TriggerSubscriptionOperationStatus DeserializeTriggerSubscriptionOperationStatus(JsonElement ele
 16        {
 017            Optional<string> triggerName = default;
 018            Optional<EventSubscriptionStatus> status = default;
 019            foreach (var property in element.EnumerateObject())
 20            {
 021                if (property.NameEquals("triggerName"))
 22                {
 023                    triggerName = property.Value.GetString();
 024                    continue;
 25                }
 026                if (property.NameEquals("status"))
 27                {
 028                    status = new EventSubscriptionStatus(property.Value.GetString());
 29                    continue;
 30                }
 31            }
 032            return new TriggerSubscriptionOperationStatus(triggerName.Value, Optional.ToNullable(status));
 33        }
 34    }
 35}