< Summary

Class:Azure.ResourceManager.Compute.ComputeManagementClient
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\ComputeManagementClient.cs
Covered lines:41
Uncovered lines:3
Coverable lines:44
Total lines:146
Line coverage:93.1% (41 of 44)
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()-100%100%
get_AvailabilitySets()-100%100%
get_ProximityPlacementGroups()-100%100%
get_DedicatedHostGroups()-100%100%
get_DedicatedHosts()-100%100%
get_SshPublicKeys()-0%100%
get_VirtualMachineExtensionImages()-100%100%
get_VirtualMachineExtensions()-100%100%
get_VirtualMachineImages()-100%100%
get_Usage()-100%100%
get_VirtualMachines()-100%100%
get_VirtualMachineSizes()-100%100%
get_Images()-100%100%
get_VirtualMachineScaleSets()-100%100%
get_VirtualMachineScaleSetExtensions()-100%100%
get_VirtualMachineScaleSetRollingUpgrades()-100%100%
get_VirtualMachineScaleSetVMExtensions()-0%100%
get_VirtualMachineScaleSetVMs()-100%100%
get_LogAnalytics()-100%100%
get_VirtualMachineRunCommands()-100%100%
get_ResourceSkus()-100%100%
get_Disks()-100%100%
get_Snapshots()-100%100%
get_DiskEncryptionSets()-100%100%
get_Galleries()-100%100%
get_GalleryImages()-100%100%
get_GalleryImageVersions()-100%100%
get_GalleryApplications()-100%100%
get_GalleryApplicationVersions()-100%100%
get_ContainerServices()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\ComputeManagementClient.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.Compute;
 12
 13namespace Azure.ResourceManager.Compute
 14{
 15    /// <summary> Compute service management client. </summary>
 16    public class ComputeManagementClient
 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 ComputeManagementClient for mocking. </summary>
 39624        protected ComputeManagementClient()
 25        {
 39626        }
 27
 28        /// <summary> Initializes a new instance of ComputeManagementClient. </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>
 39632        public ComputeManagementClient(string subscriptionId, TokenCredential tokenCredential, ComputeManagementClientOp
 33        {
 39634        }
 35        /// <summary> Initializes a new instance of ComputeManagementClient. </summary>
 36        /// <param name="endpoint"> server parameter. </param>
 37        /// <param name="subscriptionId"> Subscription credentials which uniquely identify Microsoft Azure subscription.
 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
 39641        public ComputeManagementClient(Uri endpoint, string subscriptionId, TokenCredential tokenCredential, ComputeMana
 42        {
 39643            endpoint ??= new Uri("https://management.azure.com");
 39644            if (subscriptionId == null)
 45            {
 046                throw new ArgumentNullException(nameof(subscriptionId));
 47            }
 48
 39649            options ??= new ComputeManagementClientOptions();
 39650            _clientDiagnostics = new ClientDiagnostics(options);
 39651            _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options);
 39652            _endpoint = endpoint;
 39653            _subscriptionId = subscriptionId;
 39654        }
 55
 56        /// <summary> Returns an instance of Operations. </summary>
 39657        public virtual Operations Operations => new Operations(_clientDiagnostics, _pipeline, _endpoint);
 58
 59        /// <summary> Returns an instance of AvailabilitySetsOperations. </summary>
 39660        public virtual AvailabilitySetsOperations AvailabilitySets => new AvailabilitySetsOperations(_clientDiagnostics,
 61
 62        /// <summary> Returns an instance of ProximityPlacementGroupsOperations. </summary>
 39663        public virtual ProximityPlacementGroupsOperations ProximityPlacementGroups => new ProximityPlacementGroupsOperat
 64
 65        /// <summary> Returns an instance of DedicatedHostGroupsOperations. </summary>
 39666        public virtual DedicatedHostGroupsOperations DedicatedHostGroups => new DedicatedHostGroupsOperations(_clientDia
 67
 68        /// <summary> Returns an instance of DedicatedHostsOperations. </summary>
 39669        public virtual DedicatedHostsOperations DedicatedHosts => new DedicatedHostsOperations(_clientDiagnostics, _pipe
 70
 71        /// <summary> Returns an instance of SshPublicKeysOperations. </summary>
 072        public virtual SshPublicKeysOperations SshPublicKeys => new SshPublicKeysOperations(_clientDiagnostics, _pipelin
 73
 74        /// <summary> Returns an instance of VirtualMachineExtensionImagesOperations. </summary>
 39675        public virtual VirtualMachineExtensionImagesOperations VirtualMachineExtensionImages => new VirtualMachineExtens
 76
 77        /// <summary> Returns an instance of VirtualMachineExtensionsOperations. </summary>
 39678        public virtual VirtualMachineExtensionsOperations VirtualMachineExtensions => new VirtualMachineExtensionsOperat
 79
 80        /// <summary> Returns an instance of VirtualMachineImagesOperations. </summary>
 39681        public virtual VirtualMachineImagesOperations VirtualMachineImages => new VirtualMachineImagesOperations(_client
 82
 83        /// <summary> Returns an instance of UsageOperations. </summary>
 39684        public virtual UsageOperations Usage => new UsageOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end
 85
 86        /// <summary> Returns an instance of VirtualMachinesOperations. </summary>
 39687        public virtual VirtualMachinesOperations VirtualMachines => new VirtualMachinesOperations(_clientDiagnostics, _p
 88
 89        /// <summary> Returns an instance of VirtualMachineSizesOperations. </summary>
 39690        public virtual VirtualMachineSizesOperations VirtualMachineSizes => new VirtualMachineSizesOperations(_clientDia
 91
 92        /// <summary> Returns an instance of ImagesOperations. </summary>
 39693        public virtual ImagesOperations Images => new ImagesOperations(_clientDiagnostics, _pipeline, _subscriptionId, _
 94
 95        /// <summary> Returns an instance of VirtualMachineScaleSetsOperations. </summary>
 39696        public virtual VirtualMachineScaleSetsOperations VirtualMachineScaleSets => new VirtualMachineScaleSetsOperation
 97
 98        /// <summary> Returns an instance of VirtualMachineScaleSetExtensionsOperations. </summary>
 39699        public virtual VirtualMachineScaleSetExtensionsOperations VirtualMachineScaleSetExtensions => new VirtualMachine
 100
 101        /// <summary> Returns an instance of VirtualMachineScaleSetRollingUpgradesOperations. </summary>
 396102        public virtual VirtualMachineScaleSetRollingUpgradesOperations VirtualMachineScaleSetRollingUpgrades => new Virt
 103
 104        /// <summary> Returns an instance of VirtualMachineScaleSetVMExtensionsOperations. </summary>
 0105        public virtual VirtualMachineScaleSetVMExtensionsOperations VirtualMachineScaleSetVMExtensions => new VirtualMac
 106
 107        /// <summary> Returns an instance of VirtualMachineScaleSetVMsOperations. </summary>
 396108        public virtual VirtualMachineScaleSetVMsOperations VirtualMachineScaleSetVMs => new VirtualMachineScaleSetVMsOpe
 109
 110        /// <summary> Returns an instance of LogAnalyticsOperations. </summary>
 396111        public virtual LogAnalyticsOperations LogAnalytics => new LogAnalyticsOperations(_clientDiagnostics, _pipeline, 
 112
 113        /// <summary> Returns an instance of VirtualMachineRunCommandsOperations. </summary>
 396114        public virtual VirtualMachineRunCommandsOperations VirtualMachineRunCommands => new VirtualMachineRunCommandsOpe
 115
 116        /// <summary> Returns an instance of ResourceSkusOperations. </summary>
 396117        public virtual ResourceSkusOperations ResourceSkus => new ResourceSkusOperations(_clientDiagnostics, _pipeline, 
 118
 119        /// <summary> Returns an instance of DisksOperations. </summary>
 396120        public virtual DisksOperations Disks => new DisksOperations(_clientDiagnostics, _pipeline, _subscriptionId, _end
 121
 122        /// <summary> Returns an instance of SnapshotsOperations. </summary>
 396123        public virtual SnapshotsOperations Snapshots => new SnapshotsOperations(_clientDiagnostics, _pipeline, _subscrip
 124
 125        /// <summary> Returns an instance of DiskEncryptionSetsOperations. </summary>
 396126        public virtual DiskEncryptionSetsOperations DiskEncryptionSets => new DiskEncryptionSetsOperations(_clientDiagno
 127
 128        /// <summary> Returns an instance of GalleriesOperations. </summary>
 396129        public virtual GalleriesOperations Galleries => new GalleriesOperations(_clientDiagnostics, _pipeline, _subscrip
 130
 131        /// <summary> Returns an instance of GalleryImagesOperations. </summary>
 396132        public virtual GalleryImagesOperations GalleryImages => new GalleryImagesOperations(_clientDiagnostics, _pipelin
 133
 134        /// <summary> Returns an instance of GalleryImageVersionsOperations. </summary>
 396135        public virtual GalleryImageVersionsOperations GalleryImageVersions => new GalleryImageVersionsOperations(_client
 136
 137        /// <summary> Returns an instance of GalleryApplicationsOperations. </summary>
 396138        public virtual GalleryApplicationsOperations GalleryApplications => new GalleryApplicationsOperations(_clientDia
 139
 140        /// <summary> Returns an instance of GalleryApplicationVersionsOperations. </summary>
 396141        public virtual GalleryApplicationVersionsOperations GalleryApplicationVersions => new GalleryApplicationVersions
 142
 143        /// <summary> Returns an instance of ContainerServicesOperations. </summary>
 396144        public virtual ContainerServicesOperations ContainerServices => new ContainerServicesOperations(_clientDiagnosti
 145    }
 146}