< Summary

Class:Azure.ResourceManager.AppConfiguration.Models.ConfigurationStoreUpdateParameters
Assembly:Azure.ResourceManager.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreUpdateParameters.cs
C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreUpdateParameters.Serialization.cs
Covered lines:22
Uncovered lines:12
Coverable lines:34
Total lines:92
Line coverage:64.7% (22 of 34)
Covered branches:8
Total branches:10
Branch coverage:80% (8 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Identity()-0%100%
get_Sku()-100%100%
get_Tags()-100%100%
get_Encryption()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-81.82%80%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreUpdateParameters.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;
 9
 10namespace Azure.ResourceManager.AppConfiguration.Models
 11{
 12    /// <summary> The parameters for updating a configuration store. </summary>
 13    public partial class ConfigurationStoreUpdateParameters
 14    {
 15        /// <summary> Initializes a new instance of ConfigurationStoreUpdateParameters. </summary>
 416        public ConfigurationStoreUpdateParameters()
 17        {
 418        }
 19
 20        /// <summary> Initializes a new instance of ConfigurationStoreUpdateParameters. </summary>
 21        /// <param name="identity"> The managed identity information for the configuration store. </param>
 22        /// <param name="sku"> The SKU of the configuration store. </param>
 23        /// <param name="tags"> The ARM resource tags. </param>
 24        /// <param name="encryption"> The encryption settings of the configuration store. </param>
 025        internal ConfigurationStoreUpdateParameters(ResourceIdentity identity, Sku sku, IDictionary<string, string> tags
 26        {
 027            Identity = identity;
 028            Sku = sku;
 029            Tags = tags;
 030            Encryption = encryption;
 031        }
 32
 33        /// <summary> The managed identity information for the configuration store. </summary>
 034        public ResourceIdentity Identity { get; set; }
 35        /// <summary> The SKU of the configuration store. </summary>
 2036        public Sku Sku { get; set; }
 37        /// <summary> The ARM resource tags. </summary>
 2038        public IDictionary<string, string> Tags { get; set; }
 39        /// <summary> The encryption settings of the configuration store. </summary>
 040        public EncryptionProperties Encryption { get; set; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\Models\ConfigurationStoreUpdateParameters.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 ConfigurationStoreUpdateParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 817            writer.WriteStartObject();
 818            if (Identity != null)
 19            {
 020                writer.WritePropertyName("identity");
 021                writer.WriteObjectValue(Identity);
 22            }
 823            if (Sku != null)
 24            {
 825                writer.WritePropertyName("sku");
 826                writer.WriteObjectValue(Sku);
 27            }
 828            if (Tags != null)
 29            {
 830                writer.WritePropertyName("tags");
 831                writer.WriteStartObject();
 3232                foreach (var item in Tags)
 33                {
 834                    writer.WritePropertyName(item.Key);
 835                    writer.WriteStringValue(item.Value);
 36                }
 837                writer.WriteEndObject();
 38            }
 839            writer.WritePropertyName("properties");
 840            writer.WriteStartObject();
 841            if (Encryption != null)
 42            {
 043                writer.WritePropertyName("encryption");
 044                writer.WriteObjectValue(Encryption);
 45            }
 846            writer.WriteEndObject();
 847            writer.WriteEndObject();
 848        }
 49    }
 50}