< Summary

Class:Azure.ResourceManager.Compute.Models.OrchestrationServiceStateInput
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\OrchestrationServiceStateInput.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\OrchestrationServiceStateInput.Serialization.cs
Covered lines:13
Uncovered lines:4
Coverable lines:17
Total lines:60
Line coverage:76.4% (13 of 17)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\OrchestrationServiceStateInput.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.Compute.Models
 9{
 10    /// <summary> The input for OrchestrationServiceState. </summary>
 11    public partial class OrchestrationServiceStateInput
 12    {
 13        /// <summary> Initializes a new instance of OrchestrationServiceStateInput. </summary>
 14        /// <param name="action"> The action to be performed. </param>
 015        public OrchestrationServiceStateInput(OrchestrationServiceStateAction action)
 16        {
 017            ServiceName = "AutomaticRepairs";
 018            Action = action;
 019        }
 20
 21        /// <summary> Initializes a new instance of OrchestrationServiceStateInput. </summary>
 22        /// <param name="serviceName"> The name of the service. </param>
 23        /// <param name="action"> The action to be performed. </param>
 824        internal OrchestrationServiceStateInput(string serviceName, OrchestrationServiceStateAction action)
 25        {
 826            ServiceName = serviceName;
 827            Action = action;
 828        }
 29
 30        /// <summary> The name of the service. </summary>
 1631        public string ServiceName { get; }
 32        /// <summary> The action to be performed. </summary>
 1633        public OrchestrationServiceStateAction Action { get; }
 34    }
 35}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\OrchestrationServiceStateInput.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.Compute.Models
 12{
 13    public partial class OrchestrationServiceStateInput : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 1617            writer.WriteStartObject();
 1618            writer.WritePropertyName("serviceName");
 1619            writer.WriteStringValue(ServiceName);
 1620            writer.WritePropertyName("action");
 1621            writer.WriteStringValue(Action.ToString());
 1622            writer.WriteEndObject();
 1623        }
 24    }
 25}