< Summary

Class:Azure.ResourceManager.Resources.Models.TagsPatchResource
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagsPatchResource.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagsPatchResource.Serialization.cs
Covered lines:13
Uncovered lines:4
Coverable lines:17
Total lines:63
Line coverage:76.4% (13 of 17)
Covered branches:4
Total branches:4
Branch coverage:100% (4 of 4)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagsPatchResource.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.Resources.Models
 9{
 10    /// <summary> Wrapper resource for tags patch API request only. </summary>
 11    public partial class TagsPatchResource
 12    {
 13        /// <summary> Initializes a new instance of TagsPatchResource. </summary>
 2414        public TagsPatchResource()
 15        {
 2416        }
 17
 18        /// <summary> Initializes a new instance of TagsPatchResource. </summary>
 19        /// <param name="operation"> The operation type for the patch API. </param>
 20        /// <param name="properties"> The set of tags. </param>
 021        internal TagsPatchResource(TagsPatchResourceOperation? operation, Tags properties)
 22        {
 023            Operation = operation;
 024            Properties = properties;
 025        }
 26
 27        /// <summary> The operation type for the patch API. </summary>
 7228        public TagsPatchResourceOperation? Operation { get; set; }
 29        /// <summary> The set of tags. </summary>
 7230        public Tags Properties { get; set; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\TagsPatchResource.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.Resources.Models
 12{
 13    public partial class TagsPatchResource : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 2417            writer.WriteStartObject();
 2418            if (Operation != null)
 19            {
 2420                writer.WritePropertyName("operation");
 2421                writer.WriteStringValue(Operation.Value.ToString());
 22            }
 2423            if (Properties != null)
 24            {
 2425                writer.WritePropertyName("properties");
 2426                writer.WriteObjectValue(Properties);
 27            }
 2428            writer.WriteEndObject();
 2429        }
 30    }
 31}