< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
get_ProviderLocation()-0%100%
get_Providers()-0%100%
get_AzureLocations()-0%100%
get_StartTime()-0%100%
get_EndTime()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportParameters.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;
 9using System.Collections.Generic;
 10
 11namespace Azure.ResourceManager.Network.Models
 12{
 13    /// <summary> Geographic and time constraints for Azure reachability report. </summary>
 14    public partial class AzureReachabilityReportParameters
 15    {
 16        /// <summary> Initializes a new instance of AzureReachabilityReportParameters. </summary>
 17        /// <param name="providerLocation"> Parameters that define a geographic location. </param>
 18        /// <param name="startTime"> The start time for the Azure reachability report. </param>
 19        /// <param name="endTime"> The end time for the Azure reachability report. </param>
 020        public AzureReachabilityReportParameters(AzureReachabilityReportLocation providerLocation, DateTimeOffset startT
 21        {
 022            if (providerLocation == null)
 23            {
 024                throw new ArgumentNullException(nameof(providerLocation));
 25            }
 26
 027            ProviderLocation = providerLocation;
 028            StartTime = startTime;
 029            EndTime = endTime;
 030        }
 31
 32        /// <summary> Initializes a new instance of AzureReachabilityReportParameters. </summary>
 33        /// <param name="providerLocation"> Parameters that define a geographic location. </param>
 34        /// <param name="providers"> List of Internet service providers. </param>
 35        /// <param name="azureLocations"> Optional Azure regions to scope the query to. </param>
 36        /// <param name="startTime"> The start time for the Azure reachability report. </param>
 37        /// <param name="endTime"> The end time for the Azure reachability report. </param>
 038        internal AzureReachabilityReportParameters(AzureReachabilityReportLocation providerLocation, IList<string> provi
 39        {
 040            ProviderLocation = providerLocation;
 041            Providers = providers;
 042            AzureLocations = azureLocations;
 043            StartTime = startTime;
 044            EndTime = endTime;
 045        }
 46
 47        /// <summary> Parameters that define a geographic location. </summary>
 048        public AzureReachabilityReportLocation ProviderLocation { get; }
 49        /// <summary> List of Internet service providers. </summary>
 050        public IList<string> Providers { get; set; }
 51        /// <summary> Optional Azure regions to scope the query to. </summary>
 052        public IList<string> AzureLocations { get; set; }
 53        /// <summary> The start time for the Azure reachability report. </summary>
 054        public DateTimeOffset StartTime { get; }
 55        /// <summary> The end time for the Azure reachability report. </summary>
 056        public DateTimeOffset EndTime { get; }
 57    }
 58}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportParameters.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 AzureReachabilityReportParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("providerLocation");
 019            writer.WriteObjectValue(ProviderLocation);
 020            if (Providers != null)
 21            {
 022                writer.WritePropertyName("providers");
 023                writer.WriteStartArray();
 024                foreach (var item in Providers)
 25                {
 026                    writer.WriteStringValue(item);
 27                }
 028                writer.WriteEndArray();
 29            }
 030            if (AzureLocations != null)
 31            {
 032                writer.WritePropertyName("azureLocations");
 033                writer.WriteStartArray();
 034                foreach (var item in AzureLocations)
 35                {
 036                    writer.WriteStringValue(item);
 37                }
 038                writer.WriteEndArray();
 39            }
 040            writer.WritePropertyName("startTime");
 041            writer.WriteStringValue(StartTime, "O");
 042            writer.WritePropertyName("endTime");
 043            writer.WriteStringValue(EndTime, "O");
 044            writer.WriteEndObject();
 045        }
 46    }
 47}