< Summary

Class:Azure.ResourceManager.KeyVault.KeyVaultManagementClient
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\KeyVaultManagementClient.cs
Covered lines:14
Uncovered lines:4
Coverable lines:18
Total lines:68
Line coverage:77.7% (14 of 18)
Covered branches:4
Total branches:6
Branch coverage:66.6% (4 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
.ctor(...)-90%66.67%
get_Vaults()-100%100%
get_PrivateEndpointConnections()-0%100%
get_PrivateLinkResources()-0%100%
get_Operations()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\KeyVaultManagementClient.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;
 9using Azure.Core;
 10using Azure.Core.Pipeline;
 11using Azure.ResourceManager.KeyVault;
 12
 13namespace Azure.ResourceManager.KeyVault
 14{
 15    /// <summary> KeyVault service management client. </summary>
 16    public class KeyVaultManagementClient
 17    {
 18        private readonly ClientDiagnostics _clientDiagnostics;
 19        private readonly HttpPipeline _pipeline;
 20        private readonly string _subscriptionId;
 21        private readonly Uri _endpoint;
 22
 23        /// <summary> Initializes a new instance of KeyVaultManagementClient for mocking. </summary>
 2424        protected KeyVaultManagementClient()
 25        {
 2426        }
 27
 28        /// <summary> Initializes a new instance of KeyVaultManagementClient. </summary>
 29        /// <param name="subscriptionId"> Subscription credentials which uniquely identify Microsoft Azure subscription.
 30        /// <param name="tokenCredential"> The OAuth token for making client requests. </param>
 31        /// <param name="options"> The options for configuring the client. </param>
 2432        public KeyVaultManagementClient(string subscriptionId, TokenCredential tokenCredential, KeyVaultManagementClient
 33        {
 2434        }
 35        /// <summary> Initializes a new instance of KeyVaultManagementClient. </summary>
 36        /// <param name="subscriptionId"> Subscription credentials which uniquely identify Microsoft Azure subscription.
 37        /// <param name="endpoint"> server parameter. </param>
 38        /// <param name="tokenCredential"> The OAuth token for making client requests. </param>
 39        /// <param name="options"> The options for configuring the client. </param>
 40        /// <exception cref="ArgumentNullException"> <paramref name="subscriptionId"/> is null. </exception>
 2441        public KeyVaultManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, KeyVaultMa
 42        {
 2443            if (subscriptionId == null)
 44            {
 045                throw new ArgumentNullException(nameof(subscriptionId));
 46            }
 2447            endpoint ??= new Uri("https://management.azure.com");
 48
 2449            options ??= new KeyVaultManagementClientOptions();
 2450            _clientDiagnostics = new ClientDiagnostics(options);
 2451            _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
 2452            _subscriptionId = subscriptionId;
 2453            _endpoint = endpoint;
 2454        }
 55
 56        /// <summary> Returns an instance of VaultsOperations. </summary>
 2457        public virtual VaultsOperations Vaults => new VaultsOperations(_clientDiagnostics, _pipeline, _subscriptionId, _
 58
 59        /// <summary> Returns an instance of PrivateEndpointConnectionsOperations. </summary>
 060        public virtual PrivateEndpointConnectionsOperations PrivateEndpointConnections => new PrivateEndpointConnections
 61
 62        /// <summary> Returns an instance of PrivateLinkResourcesOperations. </summary>
 063        public virtual PrivateLinkResourcesOperations PrivateLinkResources => new PrivateLinkResourcesOperations(_client
 64
 65        /// <summary> Returns an instance of Operations. </summary>
 066        public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint);
 67    }
 68}