< Summary

Class:Azure.ResourceManager.AppConfiguration.Models.RegenerateKeyParameters
Assembly:Azure.ResourceManager.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\RegenerateKeyParameters.cs
C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\RegenerateKeyParameters.Serialization.cs
Covered lines:10
Uncovered lines:2
Coverable lines:12
Total lines:54
Line coverage:83.3% (10 of 12)
Covered branches:2
Total branches:2
Branch coverage:100% (2 of 2)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\RegenerateKeyParameters.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.AppConfiguration.Models
 9{
 10    /// <summary> The parameters used to regenerate an API key. </summary>
 11    public partial class RegenerateKeyParameters
 12    {
 13        /// <summary> Initializes a new instance of RegenerateKeyParameters. </summary>
 014        public RegenerateKeyParameters()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of RegenerateKeyParameters. </summary>
 19        /// <param name="id"> The id of the key to regenerate. </param>
 420        internal RegenerateKeyParameters(string id)
 21        {
 422            Id = id;
 423        }
 24
 25        /// <summary> The id of the key to regenerate. </summary>
 1226        public string Id { get; set; }
 27    }
 28}

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\RegenerateKeyParameters.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 RegenerateKeyParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 417            writer.WriteStartObject();
 418            if (Id != null)
 19            {
 420                writer.WritePropertyName("id");
 421                writer.WriteStringValue(Id);
 22            }
 423            writer.WriteEndObject();
 424        }
 25    }
 26}