< Summary

Class:Azure.ResourceManager.Network.ConnectionMonitorsOperations
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\ConnectionMonitorsOperations.cs
Covered lines:0
Uncovered lines:206
Coverable lines:206
Total lines:538
Line coverage:0% (0 of 206)
Covered branches:0
Total branches:72
Branch coverage:0% (0 of 72)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_RestClient()-0%100%
.ctor()-0%100%
.ctor(...)-0%100%
GetAsync()-0%100%
Get(...)-0%100%
UpdateTagsAsync()-0%100%
UpdateTags(...)-0%100%
ListAsync(...)-0%0%
<ListAsync()-0%100%
List(...)-0%0%
StartCreateOrUpdateAsync()-0%0%
StartCreateOrUpdate(...)-0%0%
StartDeleteAsync()-0%0%
StartDelete(...)-0%0%
StartStopAsync()-0%0%
StartStop(...)-0%0%
StartStartAsync()-0%0%
StartStart(...)-0%0%
StartQueryAsync()-0%0%
StartQuery(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\ConnectionMonitorsOperations.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 System.Threading;
 10using System.Threading.Tasks;
 11using Azure;
 12using Azure.Core;
 13using Azure.Core.Pipeline;
 14using Azure.ResourceManager.Network.Models;
 15
 16namespace Azure.ResourceManager.Network
 17{
 18    /// <summary> The ConnectionMonitors service client. </summary>
 19    public partial class ConnectionMonitorsOperations
 20    {
 21        private readonly ClientDiagnostics _clientDiagnostics;
 22        private readonly HttpPipeline _pipeline;
 023        internal ConnectionMonitorsRestOperations RestClient { get; }
 24        /// <summary> Initializes a new instance of ConnectionMonitorsOperations for mocking. </summary>
 025        protected ConnectionMonitorsOperations()
 26        {
 027        }
 28        /// <summary> Initializes a new instance of ConnectionMonitorsOperations. </summary>
 29        /// <param name="clientDiagnostics"> The handler for diagnostic messaging in the client. </param>
 30        /// <param name="pipeline"> The HTTP pipeline for sending and receiving REST requests and responses. </param>
 31        /// <param name="subscriptionId"> The subscription credentials which uniquely identify the Microsoft Azure subsc
 32        /// <param name="endpoint"> server parameter. </param>
 033        internal ConnectionMonitorsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscri
 34        {
 035            RestClient = new ConnectionMonitorsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint);
 036            _clientDiagnostics = clientDiagnostics;
 037            _pipeline = pipeline;
 038        }
 39
 40        /// <summary> Gets a connection monitor by name. </summary>
 41        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 42        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 43        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 44        /// <param name="cancellationToken"> The cancellation token to use. </param>
 45        public virtual async Task<Response<ConnectionMonitorResult>> GetAsync(string resourceGroupName, string networkWa
 46        {
 047            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.Get");
 048            scope.Start();
 49            try
 50            {
 051                return await RestClient.GetAsync(resourceGroupName, networkWatcherName, connectionMonitorName, cancellat
 52            }
 053            catch (Exception e)
 54            {
 055                scope.Failed(e);
 056                throw;
 57            }
 058        }
 59
 60        /// <summary> Gets a connection monitor by name. </summary>
 61        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 62        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 63        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 64        /// <param name="cancellationToken"> The cancellation token to use. </param>
 65        public virtual Response<ConnectionMonitorResult> Get(string resourceGroupName, string networkWatcherName, string
 66        {
 067            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.Get");
 068            scope.Start();
 69            try
 70            {
 071                return RestClient.Get(resourceGroupName, networkWatcherName, connectionMonitorName, cancellationToken);
 72            }
 073            catch (Exception e)
 74            {
 075                scope.Failed(e);
 076                throw;
 77            }
 078        }
 79
 80        /// <summary> Update tags of the specified connection monitor. </summary>
 81        /// <param name="resourceGroupName"> The name of the resource group. </param>
 82        /// <param name="networkWatcherName"> The name of the network watcher. </param>
 83        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 84        /// <param name="parameters"> Parameters supplied to update connection monitor tags. </param>
 85        /// <param name="cancellationToken"> The cancellation token to use. </param>
 86        public virtual async Task<Response<ConnectionMonitorResult>> UpdateTagsAsync(string resourceGroupName, string ne
 87        {
 088            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.UpdateTags");
 089            scope.Start();
 90            try
 91            {
 092                return await RestClient.UpdateTagsAsync(resourceGroupName, networkWatcherName, connectionMonitorName, pa
 93            }
 094            catch (Exception e)
 95            {
 096                scope.Failed(e);
 097                throw;
 98            }
 099        }
 100
 101        /// <summary> Update tags of the specified connection monitor. </summary>
 102        /// <param name="resourceGroupName"> The name of the resource group. </param>
 103        /// <param name="networkWatcherName"> The name of the network watcher. </param>
 104        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 105        /// <param name="parameters"> Parameters supplied to update connection monitor tags. </param>
 106        /// <param name="cancellationToken"> The cancellation token to use. </param>
 107        public virtual Response<ConnectionMonitorResult> UpdateTags(string resourceGroupName, string networkWatcherName,
 108        {
 0109            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.UpdateTags");
 0110            scope.Start();
 111            try
 112            {
 0113                return RestClient.UpdateTags(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, c
 114            }
 0115            catch (Exception e)
 116            {
 0117                scope.Failed(e);
 0118                throw;
 119            }
 0120        }
 121
 122        /// <summary> Lists all connection monitors for the specified Network Watcher. </summary>
 123        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 124        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 125        /// <param name="cancellationToken"> The cancellation token to use. </param>
 126        public virtual AsyncPageable<ConnectionMonitorResult> ListAsync(string resourceGroupName, string networkWatcherN
 127        {
 0128            if (resourceGroupName == null)
 129            {
 0130                throw new ArgumentNullException(nameof(resourceGroupName));
 131            }
 0132            if (networkWatcherName == null)
 133            {
 0134                throw new ArgumentNullException(nameof(networkWatcherName));
 135            }
 136
 137            async Task<Page<ConnectionMonitorResult>> FirstPageFunc(int? pageSizeHint)
 138            {
 0139                using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.List");
 0140                scope.Start();
 141                try
 142                {
 0143                    var response = await RestClient.ListAsync(resourceGroupName, networkWatcherName, cancellationToken).
 0144                    return Page.FromValues(response.Value.Value, null, response.GetRawResponse());
 145                }
 0146                catch (Exception e)
 147                {
 0148                    scope.Failed(e);
 0149                    throw;
 150                }
 0151            }
 0152            return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null);
 153        }
 154
 155        /// <summary> Lists all connection monitors for the specified Network Watcher. </summary>
 156        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 157        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 158        /// <param name="cancellationToken"> The cancellation token to use. </param>
 159        public virtual Pageable<ConnectionMonitorResult> List(string resourceGroupName, string networkWatcherName, Cance
 160        {
 0161            if (resourceGroupName == null)
 162            {
 0163                throw new ArgumentNullException(nameof(resourceGroupName));
 164            }
 0165            if (networkWatcherName == null)
 166            {
 0167                throw new ArgumentNullException(nameof(networkWatcherName));
 168            }
 169
 170            Page<ConnectionMonitorResult> FirstPageFunc(int? pageSizeHint)
 171            {
 0172                using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.List");
 0173                scope.Start();
 174                try
 175                {
 0176                    var response = RestClient.List(resourceGroupName, networkWatcherName, cancellationToken);
 0177                    return Page.FromValues(response.Value.Value, null, response.GetRawResponse());
 178                }
 0179                catch (Exception e)
 180                {
 0181                    scope.Failed(e);
 0182                    throw;
 183                }
 0184            }
 0185            return PageableHelpers.CreateEnumerable(FirstPageFunc, null);
 186        }
 187
 188        /// <summary> Create or update a connection monitor. </summary>
 189        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 190        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 191        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 192        /// <param name="parameters"> Parameters that define the operation to create a connection monitor. </param>
 193        /// <param name="cancellationToken"> The cancellation token to use. </param>
 194        public virtual async Task<ConnectionMonitorsCreateOrUpdateOperation> StartCreateOrUpdateAsync(string resourceGro
 195        {
 0196            if (resourceGroupName == null)
 197            {
 0198                throw new ArgumentNullException(nameof(resourceGroupName));
 199            }
 0200            if (networkWatcherName == null)
 201            {
 0202                throw new ArgumentNullException(nameof(networkWatcherName));
 203            }
 0204            if (connectionMonitorName == null)
 205            {
 0206                throw new ArgumentNullException(nameof(connectionMonitorName));
 207            }
 0208            if (parameters == null)
 209            {
 0210                throw new ArgumentNullException(nameof(parameters));
 211            }
 212
 0213            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartCreateOrUpdate");
 0214            scope.Start();
 215            try
 216            {
 0217                var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, networkWatcherName, conne
 0218                return new ConnectionMonitorsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCre
 219            }
 0220            catch (Exception e)
 221            {
 0222                scope.Failed(e);
 0223                throw;
 224            }
 0225        }
 226
 227        /// <summary> Create or update a connection monitor. </summary>
 228        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 229        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 230        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 231        /// <param name="parameters"> Parameters that define the operation to create a connection monitor. </param>
 232        /// <param name="cancellationToken"> The cancellation token to use. </param>
 233        public virtual ConnectionMonitorsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, string ne
 234        {
 0235            if (resourceGroupName == null)
 236            {
 0237                throw new ArgumentNullException(nameof(resourceGroupName));
 238            }
 0239            if (networkWatcherName == null)
 240            {
 0241                throw new ArgumentNullException(nameof(networkWatcherName));
 242            }
 0243            if (connectionMonitorName == null)
 244            {
 0245                throw new ArgumentNullException(nameof(connectionMonitorName));
 246            }
 0247            if (parameters == null)
 248            {
 0249                throw new ArgumentNullException(nameof(parameters));
 250            }
 251
 0252            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartCreateOrUpdate");
 0253            scope.Start();
 254            try
 255            {
 0256                var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, networkWatcherName, connectionMonito
 0257                return new ConnectionMonitorsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCre
 258            }
 0259            catch (Exception e)
 260            {
 0261                scope.Failed(e);
 0262                throw;
 263            }
 0264        }
 265
 266        /// <summary> Deletes the specified connection monitor. </summary>
 267        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 268        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 269        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 270        /// <param name="cancellationToken"> The cancellation token to use. </param>
 271        public virtual async Task<ConnectionMonitorsDeleteOperation> StartDeleteAsync(string resourceGroupName, string n
 272        {
 0273            if (resourceGroupName == null)
 274            {
 0275                throw new ArgumentNullException(nameof(resourceGroupName));
 276            }
 0277            if (networkWatcherName == null)
 278            {
 0279                throw new ArgumentNullException(nameof(networkWatcherName));
 280            }
 0281            if (connectionMonitorName == null)
 282            {
 0283                throw new ArgumentNullException(nameof(connectionMonitorName));
 284            }
 285
 0286            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartDelete");
 0287            scope.Start();
 288            try
 289            {
 0290                var originalResponse = await RestClient.DeleteAsync(resourceGroupName, networkWatcherName, connectionMon
 0291                return new ConnectionMonitorsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteReque
 292            }
 0293            catch (Exception e)
 294            {
 0295                scope.Failed(e);
 0296                throw;
 297            }
 0298        }
 299
 300        /// <summary> Deletes the specified connection monitor. </summary>
 301        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 302        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 303        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 304        /// <param name="cancellationToken"> The cancellation token to use. </param>
 305        public virtual ConnectionMonitorsDeleteOperation StartDelete(string resourceGroupName, string networkWatcherName
 306        {
 0307            if (resourceGroupName == null)
 308            {
 0309                throw new ArgumentNullException(nameof(resourceGroupName));
 310            }
 0311            if (networkWatcherName == null)
 312            {
 0313                throw new ArgumentNullException(nameof(networkWatcherName));
 314            }
 0315            if (connectionMonitorName == null)
 316            {
 0317                throw new ArgumentNullException(nameof(connectionMonitorName));
 318            }
 319
 0320            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartDelete");
 0321            scope.Start();
 322            try
 323            {
 0324                var originalResponse = RestClient.Delete(resourceGroupName, networkWatcherName, connectionMonitorName, c
 0325                return new ConnectionMonitorsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteReque
 326            }
 0327            catch (Exception e)
 328            {
 0329                scope.Failed(e);
 0330                throw;
 331            }
 0332        }
 333
 334        /// <summary> Stops the specified connection monitor. </summary>
 335        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 336        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 337        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 338        /// <param name="cancellationToken"> The cancellation token to use. </param>
 339        public virtual async Task<ConnectionMonitorsStopOperation> StartStopAsync(string resourceGroupName, string netwo
 340        {
 0341            if (resourceGroupName == null)
 342            {
 0343                throw new ArgumentNullException(nameof(resourceGroupName));
 344            }
 0345            if (networkWatcherName == null)
 346            {
 0347                throw new ArgumentNullException(nameof(networkWatcherName));
 348            }
 0349            if (connectionMonitorName == null)
 350            {
 0351                throw new ArgumentNullException(nameof(connectionMonitorName));
 352            }
 353
 0354            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartStop");
 0355            scope.Start();
 356            try
 357            {
 0358                var originalResponse = await RestClient.StopAsync(resourceGroupName, networkWatcherName, connectionMonit
 0359                return new ConnectionMonitorsStopOperation(_clientDiagnostics, _pipeline, RestClient.CreateStopRequest(r
 360            }
 0361            catch (Exception e)
 362            {
 0363                scope.Failed(e);
 0364                throw;
 365            }
 0366        }
 367
 368        /// <summary> Stops the specified connection monitor. </summary>
 369        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 370        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 371        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 372        /// <param name="cancellationToken"> The cancellation token to use. </param>
 373        public virtual ConnectionMonitorsStopOperation StartStop(string resourceGroupName, string networkWatcherName, st
 374        {
 0375            if (resourceGroupName == null)
 376            {
 0377                throw new ArgumentNullException(nameof(resourceGroupName));
 378            }
 0379            if (networkWatcherName == null)
 380            {
 0381                throw new ArgumentNullException(nameof(networkWatcherName));
 382            }
 0383            if (connectionMonitorName == null)
 384            {
 0385                throw new ArgumentNullException(nameof(connectionMonitorName));
 386            }
 387
 0388            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartStop");
 0389            scope.Start();
 390            try
 391            {
 0392                var originalResponse = RestClient.Stop(resourceGroupName, networkWatcherName, connectionMonitorName, can
 0393                return new ConnectionMonitorsStopOperation(_clientDiagnostics, _pipeline, RestClient.CreateStopRequest(r
 394            }
 0395            catch (Exception e)
 396            {
 0397                scope.Failed(e);
 0398                throw;
 399            }
 0400        }
 401
 402        /// <summary> Starts the specified connection monitor. </summary>
 403        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 404        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 405        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 406        /// <param name="cancellationToken"> The cancellation token to use. </param>
 407        public virtual async Task<ConnectionMonitorsStartOperation> StartStartAsync(string resourceGroupName, string net
 408        {
 0409            if (resourceGroupName == null)
 410            {
 0411                throw new ArgumentNullException(nameof(resourceGroupName));
 412            }
 0413            if (networkWatcherName == null)
 414            {
 0415                throw new ArgumentNullException(nameof(networkWatcherName));
 416            }
 0417            if (connectionMonitorName == null)
 418            {
 0419                throw new ArgumentNullException(nameof(connectionMonitorName));
 420            }
 421
 0422            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartStart");
 0423            scope.Start();
 424            try
 425            {
 0426                var originalResponse = await RestClient.StartAsync(resourceGroupName, networkWatcherName, connectionMoni
 0427                return new ConnectionMonitorsStartOperation(_clientDiagnostics, _pipeline, RestClient.CreateStartRequest
 428            }
 0429            catch (Exception e)
 430            {
 0431                scope.Failed(e);
 0432                throw;
 433            }
 0434        }
 435
 436        /// <summary> Starts the specified connection monitor. </summary>
 437        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 438        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 439        /// <param name="connectionMonitorName"> The name of the connection monitor. </param>
 440        /// <param name="cancellationToken"> The cancellation token to use. </param>
 441        public virtual ConnectionMonitorsStartOperation StartStart(string resourceGroupName, string networkWatcherName, 
 442        {
 0443            if (resourceGroupName == null)
 444            {
 0445                throw new ArgumentNullException(nameof(resourceGroupName));
 446            }
 0447            if (networkWatcherName == null)
 448            {
 0449                throw new ArgumentNullException(nameof(networkWatcherName));
 450            }
 0451            if (connectionMonitorName == null)
 452            {
 0453                throw new ArgumentNullException(nameof(connectionMonitorName));
 454            }
 455
 0456            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartStart");
 0457            scope.Start();
 458            try
 459            {
 0460                var originalResponse = RestClient.Start(resourceGroupName, networkWatcherName, connectionMonitorName, ca
 0461                return new ConnectionMonitorsStartOperation(_clientDiagnostics, _pipeline, RestClient.CreateStartRequest
 462            }
 0463            catch (Exception e)
 464            {
 0465                scope.Failed(e);
 0466                throw;
 467            }
 0468        }
 469
 470        /// <summary> Query a snapshot of the most recent connection states. </summary>
 471        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 472        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 473        /// <param name="connectionMonitorName"> The name given to the connection monitor. </param>
 474        /// <param name="cancellationToken"> The cancellation token to use. </param>
 475        public virtual async Task<ConnectionMonitorsQueryOperation> StartQueryAsync(string resourceGroupName, string net
 476        {
 0477            if (resourceGroupName == null)
 478            {
 0479                throw new ArgumentNullException(nameof(resourceGroupName));
 480            }
 0481            if (networkWatcherName == null)
 482            {
 0483                throw new ArgumentNullException(nameof(networkWatcherName));
 484            }
 0485            if (connectionMonitorName == null)
 486            {
 0487                throw new ArgumentNullException(nameof(connectionMonitorName));
 488            }
 489
 0490            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartQuery");
 0491            scope.Start();
 492            try
 493            {
 0494                var originalResponse = await RestClient.QueryAsync(resourceGroupName, networkWatcherName, connectionMoni
 0495                return new ConnectionMonitorsQueryOperation(_clientDiagnostics, _pipeline, RestClient.CreateQueryRequest
 496            }
 0497            catch (Exception e)
 498            {
 0499                scope.Failed(e);
 0500                throw;
 501            }
 0502        }
 503
 504        /// <summary> Query a snapshot of the most recent connection states. </summary>
 505        /// <param name="resourceGroupName"> The name of the resource group containing Network Watcher. </param>
 506        /// <param name="networkWatcherName"> The name of the Network Watcher resource. </param>
 507        /// <param name="connectionMonitorName"> The name given to the connection monitor. </param>
 508        /// <param name="cancellationToken"> The cancellation token to use. </param>
 509        public virtual ConnectionMonitorsQueryOperation StartQuery(string resourceGroupName, string networkWatcherName, 
 510        {
 0511            if (resourceGroupName == null)
 512            {
 0513                throw new ArgumentNullException(nameof(resourceGroupName));
 514            }
 0515            if (networkWatcherName == null)
 516            {
 0517                throw new ArgumentNullException(nameof(networkWatcherName));
 518            }
 0519            if (connectionMonitorName == null)
 520            {
 0521                throw new ArgumentNullException(nameof(connectionMonitorName));
 522            }
 523
 0524            using var scope = _clientDiagnostics.CreateScope("ConnectionMonitorsOperations.StartQuery");
 0525            scope.Start();
 526            try
 527            {
 0528                var originalResponse = RestClient.Query(resourceGroupName, networkWatcherName, connectionMonitorName, ca
 0529                return new ConnectionMonitorsQueryOperation(_clientDiagnostics, _pipeline, RestClient.CreateQueryRequest
 530            }
 0531            catch (Exception e)
 532            {
 0533                scope.Failed(e);
 0534                throw;
 535            }
 0536        }
 537    }
 538}