< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%0%
get_Value()-0%100%
get_NextLink()-0%100%
DeserializeGalleryApplicationVersionList(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationVersionList.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.Collections.Generic;
 10using System.Linq;
 11
 12namespace Azure.ResourceManager.Compute.Models
 13{
 14    /// <summary> The List Gallery Application version operation response. </summary>
 15    public partial class GalleryApplicationVersionList
 16    {
 17        /// <summary> Initializes a new instance of GalleryApplicationVersionList. </summary>
 18        /// <param name="value"> A list of gallery Application Versions. </param>
 019        internal GalleryApplicationVersionList(IEnumerable<GalleryApplicationVersion> value)
 20        {
 021            if (value == null)
 22            {
 023                throw new ArgumentNullException(nameof(value));
 24            }
 25
 026            Value = value.ToArray();
 027        }
 28
 29        /// <summary> Initializes a new instance of GalleryApplicationVersionList. </summary>
 30        /// <param name="value"> A list of gallery Application Versions. </param>
 31        /// <param name="nextLink"> The uri to fetch the next page of gallery Application Versions. Call ListNext() with
 032        internal GalleryApplicationVersionList(IReadOnlyList<GalleryApplicationVersion> value, string nextLink)
 33        {
 034            Value = value ?? new List<GalleryApplicationVersion>();
 035            NextLink = nextLink;
 036        }
 37
 38        /// <summary> A list of gallery Application Versions. </summary>
 039        public IReadOnlyList<GalleryApplicationVersion> Value { get; }
 40        /// <summary> The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to fetch
 041        public string NextLink { get; }
 42    }
 43}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\GalleryApplicationVersionList.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.Collections.Generic;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.Compute.Models
 13{
 14    public partial class GalleryApplicationVersionList
 15    {
 16        internal static GalleryApplicationVersionList DeserializeGalleryApplicationVersionList(JsonElement element)
 17        {
 018            IReadOnlyList<GalleryApplicationVersion> value = default;
 019            string nextLink = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("value"))
 23                {
 024                    List<GalleryApplicationVersion> array = new List<GalleryApplicationVersion>();
 025                    foreach (var item in property.Value.EnumerateArray())
 26                    {
 027                        if (item.ValueKind == JsonValueKind.Null)
 28                        {
 029                            array.Add(null);
 30                        }
 31                        else
 32                        {
 033                            array.Add(GalleryApplicationVersion.DeserializeGalleryApplicationVersion(item));
 34                        }
 35                    }
 036                    value = array;
 037                    continue;
 38                }
 039                if (property.NameEquals("nextLink"))
 40                {
 041                    if (property.Value.ValueKind == JsonValueKind.Null)
 42                    {
 43                        continue;
 44                    }
 045                    nextLink = property.Value.GetString();
 46                    continue;
 47                }
 48            }
 049            return new GalleryApplicationVersionList(value, nextLink);
 50        }
 51    }
 52}