< Summary

Class:Azure.ResourceManager.Compute.Models.ScheduledEventsProfile
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ScheduledEventsProfile.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ScheduledEventsProfile.Serialization.cs
Covered lines:18
Uncovered lines:0
Coverable lines:18
Total lines:72
Line coverage:100% (18 of 18)
Covered branches:8
Total branches:8
Branch coverage:100% (8 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_TerminateNotificationProfile()-100%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-100%100%
DeserializeScheduledEventsProfile(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ScheduledEventsProfile.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.ResourceManager.Compute.Models
 9{
 10    /// <summary> The ScheduledEventsProfile. </summary>
 11    public partial class ScheduledEventsProfile
 12    {
 13        /// <summary> Initializes a new instance of ScheduledEventsProfile. </summary>
 414        public ScheduledEventsProfile()
 15        {
 416        }
 17
 18        /// <summary> Initializes a new instance of ScheduledEventsProfile. </summary>
 19        /// <param name="terminateNotificationProfile"> Specifies Terminate Scheduled Event related configurations. </pa
 1220        internal ScheduledEventsProfile(TerminateNotificationProfile terminateNotificationProfile)
 21        {
 1222            TerminateNotificationProfile = terminateNotificationProfile;
 1223        }
 24
 25        /// <summary> Specifies Terminate Scheduled Event related configurations. </summary>
 4026        public TerminateNotificationProfile TerminateNotificationProfile { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ScheduledEventsProfile.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.ResourceManager.Compute.Models
 12{
 13    public partial class ScheduledEventsProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 817            writer.WriteStartObject();
 818            if (TerminateNotificationProfile != null)
 19            {
 820                writer.WritePropertyName("terminateNotificationProfile");
 821                writer.WriteObjectValue(TerminateNotificationProfile);
 22            }
 823            writer.WriteEndObject();
 824        }
 25
 26        internal static ScheduledEventsProfile DeserializeScheduledEventsProfile(JsonElement element)
 27        {
 1228            TerminateNotificationProfile terminateNotificationProfile = default;
 4829            foreach (var property in element.EnumerateObject())
 30            {
 1231                if (property.NameEquals("terminateNotificationProfile"))
 32                {
 1233                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 1237                    terminateNotificationProfile = TerminateNotificationProfile.DeserializeTerminateNotificationProfile(
 38                    continue;
 39                }
 40            }
 1241            return new ScheduledEventsProfile(terminateNotificationProfile);
 42        }
 43    }
 44}