< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ContainerServiceCustomProfile.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;
 9
 10namespace Azure.ResourceManager.Compute.Models
 11{
 12    /// <summary> Properties to configure a custom container service cluster. </summary>
 13    public partial class ContainerServiceCustomProfile
 14    {
 15        /// <summary> Initializes a new instance of ContainerServiceCustomProfile. </summary>
 16        /// <param name="orchestrator"> The name of the custom orchestrator to use. </param>
 017        public ContainerServiceCustomProfile(string orchestrator)
 18        {
 019            if (orchestrator == null)
 20            {
 021                throw new ArgumentNullException(nameof(orchestrator));
 22            }
 23
 024            Orchestrator = orchestrator;
 025        }
 26
 27        /// <summary> The name of the custom orchestrator to use. </summary>
 028        public string Orchestrator { get; set; }
 29    }
 30}

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