< Summary

Class:Azure.ResourceManager.Resources.Models.OnErrorDeployment
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OnErrorDeployment.cs
C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OnErrorDeployment.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%100%
.ctor(...)-0%100%
get_Type()-0%100%
get_DeploymentName()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OnErrorDeployment.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
 8namespace Azure.ResourceManager.Resources.Models
 9{
 10    /// <summary> Deployment on error behavior. </summary>
 11    public partial class OnErrorDeployment
 12    {
 13        /// <summary> Initializes a new instance of OnErrorDeployment. </summary>
 014        public OnErrorDeployment()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of OnErrorDeployment. </summary>
 19        /// <param name="type"> The deployment on error behavior type. Possible values are LastSuccessful and SpecificDe
 20        /// <param name="deploymentName"> The deployment to be used on error case. </param>
 021        internal OnErrorDeployment(OnErrorDeploymentType? type, string deploymentName)
 22        {
 023            Type = type;
 024            DeploymentName = deploymentName;
 025        }
 26
 27        /// <summary> The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment. 
 028        public OnErrorDeploymentType? Type { get; set; }
 29        /// <summary> The deployment to be used on error case. </summary>
 030        public string DeploymentName { get; set; }
 31    }
 32}

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OnErrorDeployment.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 OnErrorDeployment : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Type != null)
 19            {
 020                writer.WritePropertyName("type");
 021                writer.WriteStringValue(Type.Value.ToSerialString());
 22            }
 023            if (DeploymentName != null)
 24            {
 025                writer.WritePropertyName("deploymentName");
 026                writer.WriteStringValue(DeploymentName);
 27            }
 028            writer.WriteEndObject();
 029        }
 30    }
 31}