< Summary

Class:Azure.ResourceManager.Storage.Models.DeletedShare
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\DeletedShare.cs
C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\DeletedShare.Serialization.cs
Covered lines:0
Uncovered lines:17
Coverable lines:17
Total lines:63
Line coverage:0% (0 of 17)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\DeletedShare.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.Storage.Models
 11{
 12    /// <summary> The deleted share to be restored. </summary>
 13    public partial class DeletedShare
 14    {
 15        /// <summary> Initializes a new instance of DeletedShare. </summary>
 16        /// <param name="deletedShareName"> Required. Identify the name of the deleted share that will be restored. </pa
 17        /// <param name="deletedShareVersion"> Required. Identify the version of the deleted share that will be restored
 018        public DeletedShare(string deletedShareName, string deletedShareVersion)
 19        {
 020            if (deletedShareName == null)
 21            {
 022                throw new ArgumentNullException(nameof(deletedShareName));
 23            }
 024            if (deletedShareVersion == null)
 25            {
 026                throw new ArgumentNullException(nameof(deletedShareVersion));
 27            }
 28
 029            DeletedShareName = deletedShareName;
 030            DeletedShareVersion = deletedShareVersion;
 031        }
 32
 33        /// <summary> Required. Identify the name of the deleted share that will be restored. </summary>
 034        public string DeletedShareName { get; }
 35        /// <summary> Required. Identify the version of the deleted share that will be restored. </summary>
 036        public string DeletedShareVersion { get; }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\Models\DeletedShare.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.Storage.Models
 12{
 13    public partial class DeletedShare : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("deletedShareName");
 019            writer.WriteStringValue(DeletedShareName);
 020            writer.WritePropertyName("deletedShareVersion");
 021            writer.WriteStringValue(DeletedShareVersion);
 022            writer.WriteEndObject();
 023        }
 24    }
 25}