< Summary

Class:Azure.ResourceManager.KeyVault.Models.OperationListResult
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\OperationListResult.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\OperationListResult.Serialization.cs
Covered lines:0
Uncovered lines:21
Coverable lines:21
Total lines:77
Line coverage:0% (0 of 21)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\OperationListResult.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 Azure.Core;
 10
 11namespace Azure.ResourceManager.KeyVault.Models
 12{
 13    /// <summary> Result of the request to list Storage operations. It contains a list of operations and a URL link to g
 14    public partial class OperationListResult
 15    {
 16        /// <summary> Initializes a new instance of OperationListResult. </summary>
 017        internal OperationListResult()
 18        {
 019            Value = new ChangeTrackingList<Operation>();
 020        }
 21
 22        /// <summary> Initializes a new instance of OperationListResult. </summary>
 23        /// <param name="value"> List of Storage operations supported by the Storage resource provider. </param>
 24        /// <param name="nextLink"> The URL to get the next set of operations. </param>
 025        internal OperationListResult(IReadOnlyList<Operation> value, string nextLink)
 26        {
 027            Value = value;
 028            NextLink = nextLink;
 029        }
 30
 31        /// <summary> List of Storage operations supported by the Storage resource provider. </summary>
 032        public IReadOnlyList<Operation> Value { get; }
 33        /// <summary> The URL to get the next set of operations. </summary>
 034        public string NextLink { get; }
 35    }
 36}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\OperationListResult.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.KeyVault.Models
 13{
 14    public partial class OperationListResult
 15    {
 16        internal static OperationListResult DeserializeOperationListResult(JsonElement element)
 17        {
 018            Optional<IReadOnlyList<Operation>> value = default;
 019            Optional<string> nextLink = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("value"))
 23                {
 024                    List<Operation> array = new List<Operation>();
 025                    foreach (var item in property.Value.EnumerateArray())
 26                    {
 027                        array.Add(Operation.DeserializeOperation(item));
 28                    }
 029                    value = array;
 030                    continue;
 31                }
 032                if (property.NameEquals("nextLink"))
 33                {
 034                    nextLink = property.Value.GetString();
 35                    continue;
 36                }
 37            }
 038            return new OperationListResult(Optional.ToList(value), nextLink.Value);
 39        }
 40    }
 41}