< Summary

Class:Azure.ResourceManager.Storage.StorageManagementClient
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\StorageManagementClient.cs
Covered lines:25
Uncovered lines:6
Coverable lines:31
Total lines:107
Line coverage:80.6% (25 of 31)
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_Skus()-100%100%
get_StorageAccounts()-100%100%
get_Usages()-100%100%
get_ManagementPolicies()-100%100%
get_PrivateEndpointConnections()-100%100%
get_PrivateLinkResources()-100%100%
get_ObjectReplicationPolicies()-100%100%
get_EncryptionScopes()-100%100%
get_BlobServices()-100%100%
get_BlobContainers()-100%100%
get_FileServices()-100%100%
get_FileShares()-100%100%
get_QueueServices()-0%100%
get_Queue()-0%100%
get_TableServices()-0%100%
get_Table()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\StorageManagementClient.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.Storage;
 12
 13namespace Azure.ResourceManager.Storage
 14{
 15    /// <summary> Storage service management client. </summary>
 16    public class StorageManagementClient
 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 StorageManagementClient for mocking. </summary>
 24024        protected StorageManagementClient()
 25        {
 24026        }
 27
 28        /// <summary> Initializes a new instance of StorageManagementClient. </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>
 24032        public StorageManagementClient(string subscriptionId, TokenCredential tokenCredential, StorageManagementClientOp
 33        {
 24034        }
 35        /// <summary> Initializes a new instance of StorageManagementClient. </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
 24041        public StorageManagementClient(Uri endpoint, string subscriptionId, TokenCredential tokenCredential, StorageMana
 42        {
 24043            endpoint ??= new Uri("https://management.azure.com");
 24044            if (subscriptionId == null)
 45            {
 046                throw new ArgumentNullException(nameof(subscriptionId));
 47            }
 48
 24049            options ??= new StorageManagementClientOptions();
 24050            _clientDiagnostics = new ClientDiagnostics(options);
 24051            _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
 24052            _endpoint = endpoint;
 24053            _subscriptionId = subscriptionId;
 24054        }
 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 SkusOperations. </summary>
 24060        public virtual SkusOperations Skus => new SkusOperations(_clientDiagnostics, _pipeline, _subscriptionId, _endpoi
 61
 62        /// <summary> Returns an instance of StorageAccountsOperations. </summary>
 24063        public virtual StorageAccountsOperations StorageAccounts => new StorageAccountsOperations(_clientDiagnostics, _p
 64
 65        /// <summary> Returns an instance of UsagesOperations. </summary>
 24066        public virtual UsagesOperations Usages => new UsagesOperations(_clientDiagnostics, _pipeline, _subscriptionId, _
 67
 68        /// <summary> Returns an instance of ManagementPoliciesOperations. </summary>
 24069        public virtual ManagementPoliciesOperations ManagementPolicies => new ManagementPoliciesOperations(_clientDiagno
 70
 71        /// <summary> Returns an instance of PrivateEndpointConnectionsOperations. </summary>
 24072        public virtual PrivateEndpointConnectionsOperations PrivateEndpointConnections => new PrivateEndpointConnections
 73
 74        /// <summary> Returns an instance of PrivateLinkResourcesOperations. </summary>
 24075        public virtual PrivateLinkResourcesOperations PrivateLinkResources => new PrivateLinkResourcesOperations(_client
 76
 77        /// <summary> Returns an instance of ObjectReplicationPoliciesOperations. </summary>
 24078        public virtual ObjectReplicationPoliciesOperations ObjectReplicationPolicies => new ObjectReplicationPoliciesOpe
 79
 80        /// <summary> Returns an instance of EncryptionScopesOperations. </summary>
 24081        public virtual EncryptionScopesOperations EncryptionScopes => new EncryptionScopesOperations(_clientDiagnostics,
 82
 83        /// <summary> Returns an instance of BlobServicesOperations. </summary>
 24084        public virtual BlobServicesOperations BlobServices => new BlobServicesOperations(_clientDiagnostics, _pipeline, 
 85
 86        /// <summary> Returns an instance of BlobContainersOperations. </summary>
 24087        public virtual BlobContainersOperations BlobContainers => new BlobContainersOperations(_clientDiagnostics, _pipe
 88
 89        /// <summary> Returns an instance of FileServicesOperations. </summary>
 24090        public virtual FileServicesOperations FileServices => new FileServicesOperations(_clientDiagnostics, _pipeline, 
 91
 92        /// <summary> Returns an instance of FileSharesOperations. </summary>
 24093        public virtual FileSharesOperations FileShares => new FileSharesOperations(_clientDiagnostics, _pipeline, _subsc
 94
 95        /// <summary> Returns an instance of QueueServicesOperations. </summary>
 096        public virtual QueueServicesOperations QueueServices => new QueueServicesOperations(_clientDiagnostics, _pipelin
 97
 98        /// <summary> Returns an instance of QueueOperations. </summary>
 099        public virtual QueueOperations Queue => new QueueOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end
 100
 101        /// <summary> Returns an instance of TableServicesOperations. </summary>
 0102        public virtual TableServicesOperations TableServices => new TableServicesOperations(_clientDiagnostics, _pipelin
 103
 104        /// <summary> Returns an instance of TableOperations. </summary>
 0105        public virtual TableOperations Table => new TableOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end
 106    }
 107}