< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultPatchParameters.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> Parameters for creating or updating a vault. </summary>
 14    public partial class VaultPatchParameters
 15    {
 16        /// <summary> Initializes a new instance of VaultPatchParameters. </summary>
 017        public VaultPatchParameters()
 18        {
 019            Tags = new ChangeTrackingDictionary<string, string>();
 020        }
 21
 22        /// <summary> The tags that will be assigned to the key vault. </summary>
 023        public IDictionary<string, string> Tags { get; }
 24        /// <summary> Properties of the vault. </summary>
 025        public VaultPatchProperties Properties { get; set; }
 26    }
 27}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultPatchParameters.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.KeyVault.Models
 12{
 13    public partial class VaultPatchParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsCollectionDefined(Tags))
 19            {
 020                writer.WritePropertyName("tags");
 021                writer.WriteStartObject();
 022                foreach (var item in Tags)
 23                {
 024                    writer.WritePropertyName(item.Key);
 025                    writer.WriteStringValue(item.Value);
 26                }
 027                writer.WriteEndObject();
 28            }
 029            if (Optional.IsDefined(Properties))
 30            {
 031                writer.WritePropertyName("properties");
 032                writer.WriteObjectValue(Properties);
 33            }
 034            writer.WriteEndObject();
 035        }
 36    }
 37}