< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineCaptureParameters.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;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> Capture Virtual Machine parameters. </summary>
 13    public partial class VirtualMachineCaptureParameters
 14    {
 15        /// <summary> Initializes a new instance of VirtualMachineCaptureParameters. </summary>
 16        /// <param name="vhdPrefix"> The captured virtual hard disk&apos;s name prefix. </param>
 17        /// <param name="destinationContainerName"> The destination container name. </param>
 18        /// <param name="overwriteVhds"> Specifies whether to overwrite the destination virtual hard disk, in case of co
 019        public VirtualMachineCaptureParameters(string vhdPrefix, string destinationContainerName, bool overwriteVhds)
 20        {
 021            if (vhdPrefix == null)
 22            {
 023                throw new ArgumentNullException(nameof(vhdPrefix));
 24            }
 025            if (destinationContainerName == null)
 26            {
 027                throw new ArgumentNullException(nameof(destinationContainerName));
 28            }
 29
 030            VhdPrefix = vhdPrefix;
 031            DestinationContainerName = destinationContainerName;
 032            OverwriteVhds = overwriteVhds;
 033        }
 34
 35        /// <summary> The captured virtual hard disk&apos;s name prefix. </summary>
 036        public string VhdPrefix { get; }
 37        /// <summary> The destination container name. </summary>
 038        public string DestinationContainerName { get; }
 39        /// <summary> Specifies whether to overwrite the destination virtual hard disk, in case of conflict. </summary>
 040        public bool OverwriteVhds { get; }
 41    }
 42}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\VirtualMachineCaptureParameters.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 VirtualMachineCaptureParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("vhdPrefix");
 019            writer.WriteStringValue(VhdPrefix);
 020            writer.WritePropertyName("destinationContainerName");
 021            writer.WriteStringValue(DestinationContainerName);
 022            writer.WritePropertyName("overwriteVhds");
 023            writer.WriteBooleanValue(OverwriteVhds);
 024            writer.WriteEndObject();
 025        }
 26    }
 27}