< Summary

Class:Azure.ResourceManager.Resources.ResourcesManagementClient
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\ResourcesManagementClient.cs
Covered lines:27
Uncovered lines:7
Coverable lines:34
Total lines:116
Line coverage:79.4% (27 of 34)
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_Operations()-0%100%
get_Deployments()-100%100%
get_Providers()-100%100%
get_Resources()-100%100%
get_ResourceGroups()-100%100%
get_Tags()-100%100%
get_Deployment()-100%100%
get_Subscriptions()-100%100%
get_Tenants()-100%100%
get_PolicyAssignments()-100%100%
get_PolicyDefinitions()-100%100%
get_PolicySetDefinitions()-100%100%
get_DeploymentScripts()-100%100%
get_Service()-0%100%
get_Features()-100%100%
get_Authorization()-0%100%
get_ManagementLocks()-0%100%
get_ResourceLinks()-100%100%
get_Applications()-0%100%
get_ApplicationDefinitions()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\ResourcesManagementClient.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.Resources;
 12
 13namespace Azure.ResourceManager.Resources
 14{
 15    /// <summary> Resources service management client. </summary>
 16    public class ResourcesManagementClient
 17    {
 18        private readonly ClientDiagnostics _clientDiagnostics;
 19        private readonly HttpPipeline _pipeline;
 20        private readonly Uri _endpoint;
 21        private readonly string _subscriptionId;
 22
 23        /// <summary> Initializes a new instance of ResourcesManagementClient for mocking. </summary>
 56424        protected ResourcesManagementClient()
 25        {
 56426        }
 27
 28        /// <summary> Initializes a new instance of ResourcesManagementClient. </summary>
 29        /// <param name="subscriptionId"> The ID of the target subscription. </param>
 30        /// <param name="tokenCredential"> The OAuth token for making client requests. </param>
 31        /// <param name="options"> The options for configuring the client. </param>
 56432        public ResourcesManagementClient(string subscriptionId, TokenCredential tokenCredential, ResourcesManagementClie
 33        {
 56434        }
 35        /// <summary> Initializes a new instance of ResourcesManagementClient. </summary>
 36        /// <param name="endpoint"> server parameter. </param>
 37        /// <param name="subscriptionId"> The ID of the target subscription. </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
 56441        public ResourcesManagementClient(Uri endpoint, string subscriptionId, TokenCredential tokenCredential, Resources
 42        {
 56443            endpoint ??= new Uri("https://management.azure.com");
 56444            if (subscriptionId == null)
 45            {
 046                throw new ArgumentNullException(nameof(subscriptionId));
 47            }
 48
 56449            options ??= new ResourcesManagementClientOptions();
 56450            _clientDiagnostics = new ClientDiagnostics(options);
 56451            _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
 56452            _endpoint = endpoint;
 56453            _subscriptionId = subscriptionId;
 56454        }
 55
 56        /// <summary> Returns an instance of Operations. </summary>
 057        public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint);
 58
 59        /// <summary> Returns an instance of DeploymentsOperations. </summary>
 35260        public virtual DeploymentsOperations Deployments => new DeploymentsOperations(_clientDiagnostics, _pipeline, _su
 61
 62        /// <summary> Returns an instance of ProvidersOperations. </summary>
 28463        public virtual ProvidersOperations Providers => new ProvidersOperations(_clientDiagnostics, _pipeline, _subscrip
 64
 65        /// <summary> Returns an instance of ResourcesOperations. </summary>
 33666        public virtual ResourcesOperations Resources => new ResourcesOperations(_clientDiagnostics, _pipeline, _subscrip
 67
 68        /// <summary> Returns an instance of ResourceGroupsOperations. </summary>
 31269        public virtual ResourceGroupsOperations ResourceGroups => new ResourceGroupsOperations(_clientDiagnostics, _pipe
 70
 71        /// <summary> Returns an instance of TagsOperations. </summary>
 25672        public virtual TagsOperations Tags => new TagsOperations(_clientDiagnostics, _pipeline, _subscriptionId, _endpoi
 73
 74        /// <summary> Returns an instance of DeploymentOperations. </summary>
 27275        public virtual DeploymentOperations Deployment => new DeploymentOperations(_clientDiagnostics, _pipeline, _subsc
 76
 77        /// <summary> Returns an instance of SubscriptionsOperations. </summary>
 26878        public virtual SubscriptionsOperations Subscriptions => new SubscriptionsOperations(_clientDiagnostics, _pipelin
 79
 80        /// <summary> Returns an instance of TenantsOperations. </summary>
 25681        public virtual TenantsOperations Tenants => new TenantsOperations(_clientDiagnostics, _pipeline, _endpoint);
 82
 83        /// <summary> Returns an instance of PolicyAssignmentsOperations. </summary>
 25684        public virtual PolicyAssignmentsOperations PolicyAssignments => new PolicyAssignmentsOperations(_clientDiagnosti
 85
 86        /// <summary> Returns an instance of PolicyDefinitionsOperations. </summary>
 25687        public virtual PolicyDefinitionsOperations PolicyDefinitions => new PolicyDefinitionsOperations(_clientDiagnosti
 88
 89        /// <summary> Returns an instance of PolicySetDefinitionsOperations. </summary>
 25690        public virtual PolicySetDefinitionsOperations PolicySetDefinitions => new PolicySetDefinitionsOperations(_client
 91
 92        /// <summary> Returns an instance of DeploymentScriptsOperations. </summary>
 25693        public virtual DeploymentScriptsOperations DeploymentScripts => new DeploymentScriptsOperations(_clientDiagnosti
 94
 95        /// <summary> Returns an instance of ServiceOperations. </summary>
 096        public virtual ServiceOperations Service => new ServiceOperations(_clientDiagnostics, _pipeline, _endpoint);
 97
 98        /// <summary> Returns an instance of FeaturesOperations. </summary>
 1699        public virtual FeaturesOperations Features => new FeaturesOperations(_clientDiagnostics, _pipeline, _subscriptio
 100
 101        /// <summary> Returns an instance of AuthorizationOperations. </summary>
 0102        public virtual AuthorizationOperations Authorization => new AuthorizationOperations(_clientDiagnostics, _pipelin
 103
 104        /// <summary> Returns an instance of ManagementLocksOperations. </summary>
 0105        public virtual ManagementLocksOperations ManagementLocks => new ManagementLocksOperations(_clientDiagnostics, _p
 106
 107        /// <summary> Returns an instance of ResourceLinksOperations. </summary>
 28108        public virtual ResourceLinksOperations ResourceLinks => new ResourceLinksOperations(_clientDiagnostics, _pipelin
 109
 110        /// <summary> Returns an instance of ApplicationsOperations. </summary>
 0111        public virtual ApplicationsOperations Applications => new ApplicationsOperations(_clientDiagnostics, _pipeline, 
 112
 113        /// <summary> Returns an instance of ApplicationDefinitionsOperations. </summary>
 0114        public virtual ApplicationDefinitionsOperations ApplicationDefinitions => new ApplicationDefinitionsOperations(_
 115    }
 116}