< Summary

Class:Azure.ResourceManager.KeyVault.Models.VaultCheckNameAvailabilityParameters
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultCheckNameAvailabilityParameters.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultCheckNameAvailabilityParameters.Serialization.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:59
Line coverage:0% (0 of 15)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultCheckNameAvailabilityParameters.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.KeyVault.Models
 11{
 12    /// <summary> The parameters used to check the availability of the vault name. </summary>
 13    public partial class VaultCheckNameAvailabilityParameters
 14    {
 15        /// <summary> Initializes a new instance of VaultCheckNameAvailabilityParameters. </summary>
 16        /// <param name="name"> The vault name. </param>
 17        /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
 018        public VaultCheckNameAvailabilityParameters(string name)
 19        {
 020            if (name == null)
 21            {
 022                throw new ArgumentNullException(nameof(name));
 23            }
 24
 025            Name = name;
 026            Type = "Microsoft.KeyVault/vaults";
 027        }
 28
 29        /// <summary> The vault name. </summary>
 030        public string Name { get; }
 31        /// <summary> The type of resource, Microsoft.KeyVault/vaults. </summary>
 032        public string Type { get; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultCheckNameAvailabilityParameters.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.KeyVault.Models
 12{
 13    public partial class VaultCheckNameAvailabilityParameters : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("name");
 019            writer.WriteStringValue(Name);
 020            writer.WritePropertyName("type");
 021            writer.WriteStringValue(Type);
 022            writer.WriteEndObject();
 023        }
 24    }
 25}