< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ContainerServiceOrchestratorProfile.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> Profile for the container service orchestrator. </summary>
 11    public partial class ContainerServiceOrchestratorProfile
 12    {
 13        /// <summary> Initializes a new instance of ContainerServiceOrchestratorProfile. </summary>
 14        /// <param name="orchestratorType"> The orchestrator to use to manage container service cluster resources. Valid
 015        public ContainerServiceOrchestratorProfile(ContainerServiceOrchestratorTypes orchestratorType)
 16        {
 017            OrchestratorType = orchestratorType;
 018        }
 19
 20        /// <summary> The orchestrator to use to manage container service cluster resources. Valid values are Swarm, DCO
 021        public ContainerServiceOrchestratorTypes OrchestratorType { get; set; }
 22    }
 23}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ContainerServiceOrchestratorProfile.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 ContainerServiceOrchestratorProfile : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("orchestratorType");
 019            writer.WriteStringValue(OrchestratorType.ToSerialString());
 020            writer.WriteEndObject();
 021        }
 22
 23        internal static ContainerServiceOrchestratorProfile DeserializeContainerServiceOrchestratorProfile(JsonElement e
 24        {
 025            ContainerServiceOrchestratorTypes orchestratorType = default;
 026            foreach (var property in element.EnumerateObject())
 27            {
 028                if (property.NameEquals("orchestratorType"))
 29                {
 030                    orchestratorType = property.Value.GetString().ToContainerServiceOrchestratorTypes();
 31                    continue;
 32                }
 33            }
 034            return new ContainerServiceOrchestratorProfile(orchestratorType);
 35        }
 36    }
 37}