< Summary

Class:Azure.ResourceManager.AppConfiguration.Models.ListKeyValueParameters
Assembly:Azure.ResourceManager.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ListKeyValueParameters.cs
C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ListKeyValueParameters.Serialization.cs
Covered lines:0
Uncovered lines:19
Coverable lines:19
Total lines:69
Line coverage:0% (0 of 19)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_Key()-0%100%
get_Label()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ListKeyValueParameters.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;
 9
 10namespace Azure.ResourceManager.AppConfiguration.Models
 11{
 12    /// <summary> The parameters used to list a configuration store key-value. </summary>
 13    public partial class ListKeyValueParameters
 14    {
 15        /// <summary> Initializes a new instance of ListKeyValueParameters. </summary>
 16        /// <param name="key"> The key to retrieve. </param>
 017        public ListKeyValueParameters(string key)
 18        {
 019            if (key == null)
 20            {
 021                throw new ArgumentNullException(nameof(key));
 22            }
 23
 024            Key = key;
 025        }
 26
 27        /// <summary> Initializes a new instance of ListKeyValueParameters. </summary>
 28        /// <param name="key"> The key to retrieve. </param>
 29        /// <param name="label"> The label of the key. </param>
 030        internal ListKeyValueParameters(string key, string label)
 31        {
 032            Key = key;
 033            Label = label;
 034        }
 35
 36        /// <summary> The key to retrieve. </summary>
 037        public string Key { get; }
 38        /// <summary> The label of the key. </summary>
 039        public string Label { get; set; }
 40    }
 41}

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ListKeyValueParameters.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.AppConfiguration.Models
 12{
 13    public partial class ListKeyValueParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("key");
 019            writer.WriteStringValue(Key);
 020            if (Label != null)
 21            {
 022                writer.WritePropertyName("label");
 023                writer.WriteStringValue(Label);
 24            }
 025            writer.WriteEndObject();
 026        }
 27    }
 28}