< Summary

Class:Azure.ResourceManager.Compute.Models.UpdateResourceDefinition
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\UpdateResourceDefinition.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\UpdateResourceDefinition.Serialization.cs
Covered lines:0
Uncovered lines:31
Coverable lines:31
Total lines:89
Line coverage:0% (0 of 31)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\UpdateResourceDefinition.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.Compute.Models
 11{
 12    /// <summary> The Update Resource model definition. </summary>
 13    public partial class UpdateResourceDefinition
 14    {
 15        /// <summary> Initializes a new instance of UpdateResourceDefinition. </summary>
 016        public UpdateResourceDefinition()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of UpdateResourceDefinition. </summary>
 21        /// <param name="id"> Resource Id. </param>
 22        /// <param name="name"> Resource name. </param>
 23        /// <param name="type"> Resource type. </param>
 24        /// <param name="tags"> Resource tags. </param>
 025        internal UpdateResourceDefinition(string id, string name, string type, IDictionary<string, string> tags)
 26        {
 027            Id = id;
 028            Name = name;
 029            Type = type;
 030            Tags = tags;
 031        }
 32
 33        /// <summary> Resource Id. </summary>
 034        public string Id { get; }
 35        /// <summary> Resource name. </summary>
 036        public string Name { get; }
 37        /// <summary> Resource type. </summary>
 038        public string Type { get; }
 39        /// <summary> Resource tags. </summary>
 040        public IDictionary<string, string> Tags { get; set; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\UpdateResourceDefinition.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.Compute.Models
 12{
 13    public partial class UpdateResourceDefinition : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Id != null)
 19            {
 020                writer.WritePropertyName("id");
 021                writer.WriteStringValue(Id);
 22            }
 023            if (Name != null)
 24            {
 025                writer.WritePropertyName("name");
 026                writer.WriteStringValue(Name);
 27            }
 028            if (Type != null)
 29            {
 030                writer.WritePropertyName("type");
 031                writer.WriteStringValue(Type);
 32            }
 033            if (Tags != null)
 34            {
 035                writer.WritePropertyName("tags");
 036                writer.WriteStartObject();
 037                foreach (var item in Tags)
 38                {
 039                    writer.WritePropertyName(item.Key);
 040                    writer.WriteStringValue(item.Value);
 41                }
 042                writer.WriteEndObject();
 43            }
 044            writer.WriteEndObject();
 045        }
 46    }
 47}