< Summary

Class:Azure.ResourceManager.AppConfiguration.AppConfigurationManagementClient
Assembly:Azure.ResourceManager.AppConfiguration
File(s):C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\AppConfigurationManagementClient.cs
Covered lines:17
Uncovered lines:1
Coverable lines:18
Total lines:68
Line coverage:94.4% (17 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_ConfigurationStores()-100%100%
get_Operations()-100%100%
get_PrivateEndpointConnections()-100%100%
get_PrivateLinkResources()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\appconfiguration\Azure.ResourceManager.AppConfiguration\src\Generated\AppConfigurationManagementClient.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.AppConfiguration;
 12
 13namespace Azure.ResourceManager.AppConfiguration
 14{
 15    /// <summary> AppConfiguration service management client. </summary>
 16    public class AppConfigurationManagementClient
 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 AppConfigurationManagementClient for mocking. </summary>
 824        protected AppConfigurationManagementClient()
 25        {
 826        }
 27
 28        /// <summary> Initializes a new instance of AppConfigurationManagementClient. </summary>
 29        /// <param name="subscriptionId"> The Microsoft Azure subscription ID. </param>
 30        /// <param name="tokenCredential"> The OAuth token for making client requests. </param>
 31        /// <param name="options"> The options for configuring the client. </param>
 832        public AppConfigurationManagementClient(string subscriptionId, TokenCredential tokenCredential, AppConfiguration
 33        {
 834        }
 35        /// <summary> Initializes a new instance of AppConfigurationManagementClient. </summary>
 36        /// <param name="subscriptionId"> The Microsoft Azure subscription ID. </param>
 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"> This occurs when one of the required arguments is null. </exception
 841        public AppConfigurationManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, Ap
 42        {
 843            if (subscriptionId == null)
 44            {
 045                throw new ArgumentNullException(nameof(subscriptionId));
 46            }
 847            endpoint ??= new Uri("https://management.azure.com");
 48
 849            options ??= new AppConfigurationManagementClientOptions();
 850            _clientDiagnostics = new ClientDiagnostics(options);
 851            _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
 852            _subscriptionId = subscriptionId;
 853            _endpoint = endpoint;
 854        }
 55
 56        /// <summary> Returns an instance of ConfigurationStoresOperations. </summary>
 857        public virtual ConfigurationStoresOperations ConfigurationStores => new ConfigurationStoresOperations(_clientDia
 58
 59        /// <summary> Returns an instance of Operations. </summary>
 860        public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint
 61
 62        /// <summary> Returns an instance of PrivateEndpointConnectionsOperations. </summary>
 863        public virtual PrivateEndpointConnectionsOperations PrivateEndpointConnections => new PrivateEndpointConnections
 64
 65        /// <summary> Returns an instance of PrivateLinkResourcesOperations. </summary>
 866        public virtual PrivateLinkResourcesOperations PrivateLinkResources => new PrivateLinkResourcesOperations(_client
 67    }
 68}