< Summary

Class:Azure.ResourceManager.Network.Models.BastionShareableLinkListRequest
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\BastionShareableLinkListRequest.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\BastionShareableLinkListRequest.Serialization.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:61
Line coverage:0% (0 of 15)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\BastionShareableLinkListRequest.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.Network.Models
 11{
 12    /// <summary> Post request for all the Bastion Shareable Link endpoints. </summary>
 13    public partial class BastionShareableLinkListRequest
 14    {
 15        /// <summary> Initializes a new instance of BastionShareableLinkListRequest. </summary>
 016        public BastionShareableLinkListRequest()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of BastionShareableLinkListRequest. </summary>
 21        /// <param name="vms"> List of VM references. </param>
 022        internal BastionShareableLinkListRequest(IList<BastionShareableLink> vms)
 23        {
 024            Vms = vms;
 025        }
 26
 27        /// <summary> List of VM references. </summary>
 028        public IList<BastionShareableLink> Vms { get; set; }
 29    }
 30}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\BastionShareableLinkListRequest.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.Network.Models
 12{
 13    public partial class BastionShareableLinkListRequest : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Vms != null)
 19            {
 020                writer.WritePropertyName("vms");
 021                writer.WriteStartArray();
 022                foreach (var item in Vms)
 23                {
 024                    writer.WriteObjectValue(item);
 25                }
 026                writer.WriteEndArray();
 27            }
 028            writer.WriteEndObject();
 029        }
 30    }
 31}