< Summary

Class:Azure.Messaging.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventDataSku
Assembly:Azure.Messaging.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebAppServicePlanUpdatedEventDataSku.cs
C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebAppServicePlanUpdatedEventDataSku.Serialization.cs
Covered lines:0
Uncovered lines:35
Coverable lines:35
Total lines:97
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_Name()-0%100%
get_Tier()-0%100%
get_Size()-0%100%
get_Family()-0%100%
get_Capacity()-0%100%
DeserializeWebAppServicePlanUpdatedEventDataSku(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebAppServicePlanUpdatedEventDataSku.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.Messaging.EventGrid.SystemEvents
 9{
 10    /// <summary> sku of app service plan. </summary>
 11    public partial class WebAppServicePlanUpdatedEventDataSku
 12    {
 13        /// <summary> Initializes a new instance of WebAppServicePlanUpdatedEventDataSku. </summary>
 014        internal WebAppServicePlanUpdatedEventDataSku()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of WebAppServicePlanUpdatedEventDataSku. </summary>
 19        /// <param name="name"> name of app service plan sku. </param>
 20        /// <param name="tier"> tier of app service plan sku. </param>
 21        /// <param name="size"> size of app service plan sku. </param>
 22        /// <param name="family"> family of app service plan sku. </param>
 23        /// <param name="capacity"> capacity of app service plan sku. </param>
 024        internal WebAppServicePlanUpdatedEventDataSku(string name, string tier, string size, string family, string capac
 25        {
 026            Name = name;
 027            Tier = tier;
 028            Size = size;
 029            Family = family;
 030            Capacity = capacity;
 031        }
 32
 33        /// <summary> name of app service plan sku. </summary>
 034        public string Name { get; }
 35        /// <summary> tier of app service plan sku. </summary>
 036        public string Tier { get; }
 37        /// <summary> size of app service plan sku. </summary>
 038        public string Size { get; }
 39        /// <summary> family of app service plan sku. </summary>
 040        public string Family { get; }
 41        /// <summary> capacity of app service plan sku. </summary>
 042        public string Capacity { get; }
 43    }
 44}

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebAppServicePlanUpdatedEventDataSku.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.Messaging.EventGrid.SystemEvents
 12{
 13    public partial class WebAppServicePlanUpdatedEventDataSku
 14    {
 15        internal static WebAppServicePlanUpdatedEventDataSku DeserializeWebAppServicePlanUpdatedEventDataSku(JsonElement
 16        {
 017            Optional<string> name = default;
 018            Optional<string> tier = default;
 019            Optional<string> size = default;
 020            Optional<string> family = default;
 021            Optional<string> capacity = default;
 022            foreach (var property in element.EnumerateObject())
 23            {
 024                if (property.NameEquals("name"))
 25                {
 026                    name = property.Value.GetString();
 027                    continue;
 28                }
 029                if (property.NameEquals("Tier"))
 30                {
 031                    tier = property.Value.GetString();
 032                    continue;
 33                }
 034                if (property.NameEquals("Size"))
 35                {
 036                    size = property.Value.GetString();
 037                    continue;
 38                }
 039                if (property.NameEquals("Family"))
 40                {
 041                    family = property.Value.GetString();
 042                    continue;
 43                }
 044                if (property.NameEquals("Capacity"))
 45                {
 046                    capacity = property.Value.GetString();
 47                    continue;
 48                }
 49            }
 050            return new WebAppServicePlanUpdatedEventDataSku(name.Value, tier.Value, size.Value, family.Value, capacity.V
 51        }
 52    }
 53}