< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\SshPublicKeyUpdateResource.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> Specifies information about the SSH public key. </summary>
 13    public partial class SshPublicKeyUpdateResource : UpdateResource
 14    {
 15        /// <summary> Initializes a new instance of SshPublicKeyUpdateResource. </summary>
 016        public SshPublicKeyUpdateResource()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of SshPublicKeyUpdateResource. </summary>
 21        /// <param name="tags"> Resource tags. </param>
 22        /// <param name="publicKey"> SSH public key used to authenticate to a virtual machine through ssh. If this prope
 023        internal SshPublicKeyUpdateResource(IDictionary<string, string> tags, string publicKey) : base(tags)
 24        {
 025            PublicKey = publicKey;
 026        }
 27
 28        /// <summary> SSH public key used to authenticate to a virtual machine through ssh. If this property is not init
 029        public string PublicKey { get; set; }
 30    }
 31}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\SshPublicKeyUpdateResource.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 SshPublicKeyUpdateResource : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Tags != null)
 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            writer.WritePropertyName("properties");
 030            writer.WriteStartObject();
 031            if (PublicKey != null)
 32            {
 033                writer.WritePropertyName("publicKey");
 034                writer.WriteStringValue(PublicKey);
 35            }
 036            writer.WriteEndObject();
 037            writer.WriteEndObject();
 038        }
 39    }
 40}