< Summary

Class:Azure.ResourceManager.Resources.Models.ExportTemplateRequest
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ExportTemplateRequest.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ExportTemplateRequest.Serialization.cs
Covered lines:0
Uncovered lines:20
Coverable lines:20
Total lines:70
Line coverage:0% (0 of 20)
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_Resources()-0%100%
get_Options()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ExportTemplateRequest.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.Resources.Models
 11{
 12    /// <summary> Export resource group template request parameters. </summary>
 13    public partial class ExportTemplateRequest
 14    {
 15        /// <summary> Initializes a new instance of ExportTemplateRequest. </summary>
 016        public ExportTemplateRequest()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of ExportTemplateRequest. </summary>
 21        /// <param name="resources"> The IDs of the resources to filter the export by. To export all resources, supply a
 22        /// <param name="options"> The export template options. A CSV-formatted list containing zero or more of the foll
 023        internal ExportTemplateRequest(IList<string> resources, string options)
 24        {
 025            Resources = resources;
 026            Options = options;
 027        }
 28
 29        /// <summary> The IDs of the resources to filter the export by. To export all resources, supply an array with si
 030        public IList<string> Resources { get; set; }
 31        /// <summary> The export template options. A CSV-formatted list containing zero or more of the following: &apos;
 032        public string Options { get; set; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ExportTemplateRequest.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.Resources.Models
 12{
 13    public partial class ExportTemplateRequest : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Resources != null)
 19            {
 020                writer.WritePropertyName("resources");
 021                writer.WriteStartArray();
 022                foreach (var item in Resources)
 23                {
 024                    writer.WriteStringValue(item);
 25                }
 026                writer.WriteEndArray();
 27            }
 028            if (Options != null)
 29            {
 030                writer.WritePropertyName("options");
 031                writer.WriteStringValue(Options);
 32            }
 033            writer.WriteEndObject();
 034        }
 35    }
 36}