< Summary

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

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%100%
<ListAsync()-0%100%
ListAsync(...)-0%100%
List(...)-0%100%
ListByResourceGroupAsync(...)-0%0%
<ListByResourceGroupAsync()-0%100%
<ListByResourceGroupAsync()-0%100%
ListByResourceGroup(...)-0%0%
StartCreateOrUpdateAsync()-0%0%
StartCreateOrUpdate(...)-0%0%
StartListArpTableAsync()-0%0%
StartListArpTable(...)-0%0%
StartListRoutesTableSummaryAsync()-0%0%
StartListRoutesTableSummary(...)-0%0%
StartListRoutesTableAsync()-0%0%
StartListRoutesTable(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\ExpressRouteCrossConnectionsOperations.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 ExpressRouteCrossConnections service client. </summary>
 19    public partial class ExpressRouteCrossConnectionsOperations
 20    {
 21        private readonly ClientDiagnostics _clientDiagnostics;
 22        private readonly HttpPipeline _pipeline;
 023        internal ExpressRouteCrossConnectionsRestOperations RestClient { get; }
 24        /// <summary> Initializes a new instance of ExpressRouteCrossConnectionsOperations for mocking. </summary>
 025        protected ExpressRouteCrossConnectionsOperations()
 26        {
 027        }
 28        /// <summary> Initializes a new instance of ExpressRouteCrossConnectionsOperations. </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 ExpressRouteCrossConnectionsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, stri
 34        {
 035            RestClient = new ExpressRouteCrossConnectionsRestOperations(clientDiagnostics, pipeline, subscriptionId, end
 036            _clientDiagnostics = clientDiagnostics;
 037            _pipeline = pipeline;
 038        }
 39
 40        /// <summary> Gets details about the specified ExpressRouteCrossConnection. </summary>
 41        /// <param name="resourceGroupName"> The name of the resource group (peering location of the circuit). </param>
 42        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection (service key of the circuit).
 43        /// <param name="cancellationToken"> The cancellation token to use. </param>
 44        public virtual async Task<Response<ExpressRouteCrossConnection>> GetAsync(string resourceGroupName, string cross
 45        {
 046            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.Get");
 047            scope.Start();
 48            try
 49            {
 050                return await RestClient.GetAsync(resourceGroupName, crossConnectionName, cancellationToken).ConfigureAwa
 51            }
 052            catch (Exception e)
 53            {
 054                scope.Failed(e);
 055                throw;
 56            }
 057        }
 58
 59        /// <summary> Gets details about the specified ExpressRouteCrossConnection. </summary>
 60        /// <param name="resourceGroupName"> The name of the resource group (peering location of the circuit). </param>
 61        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection (service key of the circuit).
 62        /// <param name="cancellationToken"> The cancellation token to use. </param>
 63        public virtual Response<ExpressRouteCrossConnection> Get(string resourceGroupName, string crossConnectionName, C
 64        {
 065            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.Get");
 066            scope.Start();
 67            try
 68            {
 069                return RestClient.Get(resourceGroupName, crossConnectionName, cancellationToken);
 70            }
 071            catch (Exception e)
 72            {
 073                scope.Failed(e);
 074                throw;
 75            }
 076        }
 77
 78        /// <summary> Updates an express route cross connection tags. </summary>
 79        /// <param name="resourceGroupName"> The name of the resource group. </param>
 80        /// <param name="crossConnectionName"> The name of the cross connection. </param>
 81        /// <param name="crossConnectionParameters"> Parameters supplied to update express route cross connection tags. 
 82        /// <param name="cancellationToken"> The cancellation token to use. </param>
 83        public virtual async Task<Response<ExpressRouteCrossConnection>> UpdateTagsAsync(string resourceGroupName, strin
 84        {
 085            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.UpdateTags");
 086            scope.Start();
 87            try
 88            {
 089                return await RestClient.UpdateTagsAsync(resourceGroupName, crossConnectionName, crossConnectionParameter
 90            }
 091            catch (Exception e)
 92            {
 093                scope.Failed(e);
 094                throw;
 95            }
 096        }
 97
 98        /// <summary> Updates an express route cross connection tags. </summary>
 99        /// <param name="resourceGroupName"> The name of the resource group. </param>
 100        /// <param name="crossConnectionName"> The name of the cross connection. </param>
 101        /// <param name="crossConnectionParameters"> Parameters supplied to update express route cross connection tags. 
 102        /// <param name="cancellationToken"> The cancellation token to use. </param>
 103        public virtual Response<ExpressRouteCrossConnection> UpdateTags(string resourceGroupName, string crossConnection
 104        {
 0105            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.UpdateTags");
 0106            scope.Start();
 107            try
 108            {
 0109                return RestClient.UpdateTags(resourceGroupName, crossConnectionName, crossConnectionParameters, cancella
 110            }
 0111            catch (Exception e)
 112            {
 0113                scope.Failed(e);
 0114                throw;
 115            }
 0116        }
 117
 118        /// <summary> Retrieves all the ExpressRouteCrossConnections in a subscription. </summary>
 119        /// <param name="cancellationToken"> The cancellation token to use. </param>
 120        public virtual AsyncPageable<ExpressRouteCrossConnection> ListAsync(CancellationToken cancellationToken = defaul
 121        {
 122            async Task<Page<ExpressRouteCrossConnection>> FirstPageFunc(int? pageSizeHint)
 123            {
 0124                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List");
 0125                scope.Start();
 126                try
 127                {
 0128                    var response = await RestClient.ListAsync(cancellationToken).ConfigureAwait(false);
 0129                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 130                }
 0131                catch (Exception e)
 132                {
 0133                    scope.Failed(e);
 0134                    throw;
 135                }
 0136            }
 137            async Task<Page<ExpressRouteCrossConnection>> NextPageFunc(string nextLink, int? pageSizeHint)
 138            {
 0139                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List");
 0140                scope.Start();
 141                try
 142                {
 0143                    var response = await RestClient.ListNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false)
 0144                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 145                }
 0146                catch (Exception e)
 147                {
 0148                    scope.Failed(e);
 0149                    throw;
 150                }
 0151            }
 0152            return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc);
 153        }
 154
 155        /// <summary> Retrieves all the ExpressRouteCrossConnections in a subscription. </summary>
 156        /// <param name="cancellationToken"> The cancellation token to use. </param>
 157        public virtual Pageable<ExpressRouteCrossConnection> List(CancellationToken cancellationToken = default)
 158        {
 159            Page<ExpressRouteCrossConnection> FirstPageFunc(int? pageSizeHint)
 160            {
 0161                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List");
 0162                scope.Start();
 163                try
 164                {
 0165                    var response = RestClient.List(cancellationToken);
 0166                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 167                }
 0168                catch (Exception e)
 169                {
 0170                    scope.Failed(e);
 0171                    throw;
 172                }
 0173            }
 174            Page<ExpressRouteCrossConnection> NextPageFunc(string nextLink, int? pageSizeHint)
 175            {
 0176                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List");
 0177                scope.Start();
 178                try
 179                {
 0180                    var response = RestClient.ListNextPage(nextLink, cancellationToken);
 0181                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 182                }
 0183                catch (Exception e)
 184                {
 0185                    scope.Failed(e);
 0186                    throw;
 187                }
 0188            }
 0189            return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc);
 190        }
 191
 192        /// <summary> Retrieves all the ExpressRouteCrossConnections in a resource group. </summary>
 193        /// <param name="resourceGroupName"> The name of the resource group. </param>
 194        /// <param name="cancellationToken"> The cancellation token to use. </param>
 195        public virtual AsyncPageable<ExpressRouteCrossConnection> ListByResourceGroupAsync(string resourceGroupName, Can
 196        {
 0197            if (resourceGroupName == null)
 198            {
 0199                throw new ArgumentNullException(nameof(resourceGroupName));
 200            }
 201
 202            async Task<Page<ExpressRouteCrossConnection>> FirstPageFunc(int? pageSizeHint)
 203            {
 0204                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG
 0205                scope.Start();
 206                try
 207                {
 0208                    var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, cancellationToken).Confi
 0209                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 210                }
 0211                catch (Exception e)
 212                {
 0213                    scope.Failed(e);
 0214                    throw;
 215                }
 0216            }
 217            async Task<Page<ExpressRouteCrossConnection>> NextPageFunc(string nextLink, int? pageSizeHint)
 218            {
 0219                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG
 0220                scope.Start();
 221                try
 222                {
 0223                    var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, cancel
 0224                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 225                }
 0226                catch (Exception e)
 227                {
 0228                    scope.Failed(e);
 0229                    throw;
 230                }
 0231            }
 0232            return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc);
 233        }
 234
 235        /// <summary> Retrieves all the ExpressRouteCrossConnections in a resource group. </summary>
 236        /// <param name="resourceGroupName"> The name of the resource group. </param>
 237        /// <param name="cancellationToken"> The cancellation token to use. </param>
 238        public virtual Pageable<ExpressRouteCrossConnection> ListByResourceGroup(string resourceGroupName, CancellationT
 239        {
 0240            if (resourceGroupName == null)
 241            {
 0242                throw new ArgumentNullException(nameof(resourceGroupName));
 243            }
 244
 245            Page<ExpressRouteCrossConnection> FirstPageFunc(int? pageSizeHint)
 246            {
 0247                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG
 0248                scope.Start();
 249                try
 250                {
 0251                    var response = RestClient.ListByResourceGroup(resourceGroupName, cancellationToken);
 0252                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 253                }
 0254                catch (Exception e)
 255                {
 0256                    scope.Failed(e);
 0257                    throw;
 258                }
 0259            }
 260            Page<ExpressRouteCrossConnection> NextPageFunc(string nextLink, int? pageSizeHint)
 261            {
 0262                using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG
 0263                scope.Start();
 264                try
 265                {
 0266                    var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, cancellationToken
 0267                    return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse());
 268                }
 0269                catch (Exception e)
 270                {
 0271                    scope.Failed(e);
 0272                    throw;
 273                }
 0274            }
 0275            return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc);
 276        }
 277
 278        /// <summary> Update the specified ExpressRouteCrossConnection. </summary>
 279        /// <param name="resourceGroupName"> The name of the resource group. </param>
 280        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 281        /// <param name="parameters"> Parameters supplied to the update express route crossConnection operation. </param
 282        /// <param name="cancellationToken"> The cancellation token to use. </param>
 283        public virtual async Task<ExpressRouteCrossConnectionsCreateOrUpdateOperation> StartCreateOrUpdateAsync(string r
 284        {
 0285            if (resourceGroupName == null)
 286            {
 0287                throw new ArgumentNullException(nameof(resourceGroupName));
 288            }
 0289            if (crossConnectionName == null)
 290            {
 0291                throw new ArgumentNullException(nameof(crossConnectionName));
 292            }
 0293            if (parameters == null)
 294            {
 0295                throw new ArgumentNullException(nameof(parameters));
 296            }
 297
 0298            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartCreateOrUpdate
 0299            scope.Start();
 300            try
 301            {
 0302                var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, crossConnectionName, para
 0303                return new ExpressRouteCrossConnectionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient
 304            }
 0305            catch (Exception e)
 306            {
 0307                scope.Failed(e);
 0308                throw;
 309            }
 0310        }
 311
 312        /// <summary> Update the specified ExpressRouteCrossConnection. </summary>
 313        /// <param name="resourceGroupName"> The name of the resource group. </param>
 314        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 315        /// <param name="parameters"> Parameters supplied to the update express route crossConnection operation. </param
 316        /// <param name="cancellationToken"> The cancellation token to use. </param>
 317        public virtual ExpressRouteCrossConnectionsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName,
 318        {
 0319            if (resourceGroupName == null)
 320            {
 0321                throw new ArgumentNullException(nameof(resourceGroupName));
 322            }
 0323            if (crossConnectionName == null)
 324            {
 0325                throw new ArgumentNullException(nameof(crossConnectionName));
 326            }
 0327            if (parameters == null)
 328            {
 0329                throw new ArgumentNullException(nameof(parameters));
 330            }
 331
 0332            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartCreateOrUpdate
 0333            scope.Start();
 334            try
 335            {
 0336                var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, crossConnectionName, parameters, can
 0337                return new ExpressRouteCrossConnectionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient
 338            }
 0339            catch (Exception e)
 340            {
 0341                scope.Failed(e);
 0342                throw;
 343            }
 0344        }
 345
 346        /// <summary> Gets the currently advertised ARP table associated with the express route cross connection in a re
 347        /// <param name="resourceGroupName"> The name of the resource group. </param>
 348        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 349        /// <param name="peeringName"> The name of the peering. </param>
 350        /// <param name="devicePath"> The path of the device. </param>
 351        /// <param name="cancellationToken"> The cancellation token to use. </param>
 352        public virtual async Task<ExpressRouteCrossConnectionsListArpTableOperation> StartListArpTableAsync(string resou
 353        {
 0354            if (resourceGroupName == null)
 355            {
 0356                throw new ArgumentNullException(nameof(resourceGroupName));
 357            }
 0358            if (crossConnectionName == null)
 359            {
 0360                throw new ArgumentNullException(nameof(crossConnectionName));
 361            }
 0362            if (peeringName == null)
 363            {
 0364                throw new ArgumentNullException(nameof(peeringName));
 365            }
 0366            if (devicePath == null)
 367            {
 0368                throw new ArgumentNullException(nameof(devicePath));
 369            }
 370
 0371            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListArpTable")
 0372            scope.Start();
 373            try
 374            {
 0375                var originalResponse = await RestClient.ListArpTableAsync(resourceGroupName, crossConnectionName, peerin
 0376                return new ExpressRouteCrossConnectionsListArpTableOperation(_clientDiagnostics, _pipeline, RestClient.C
 377            }
 0378            catch (Exception e)
 379            {
 0380                scope.Failed(e);
 0381                throw;
 382            }
 0383        }
 384
 385        /// <summary> Gets the currently advertised ARP table associated with the express route cross connection in a re
 386        /// <param name="resourceGroupName"> The name of the resource group. </param>
 387        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 388        /// <param name="peeringName"> The name of the peering. </param>
 389        /// <param name="devicePath"> The path of the device. </param>
 390        /// <param name="cancellationToken"> The cancellation token to use. </param>
 391        public virtual ExpressRouteCrossConnectionsListArpTableOperation StartListArpTable(string resourceGroupName, str
 392        {
 0393            if (resourceGroupName == null)
 394            {
 0395                throw new ArgumentNullException(nameof(resourceGroupName));
 396            }
 0397            if (crossConnectionName == null)
 398            {
 0399                throw new ArgumentNullException(nameof(crossConnectionName));
 400            }
 0401            if (peeringName == null)
 402            {
 0403                throw new ArgumentNullException(nameof(peeringName));
 404            }
 0405            if (devicePath == null)
 406            {
 0407                throw new ArgumentNullException(nameof(devicePath));
 408            }
 409
 0410            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListArpTable")
 0411            scope.Start();
 412            try
 413            {
 0414                var originalResponse = RestClient.ListArpTable(resourceGroupName, crossConnectionName, peeringName, devi
 0415                return new ExpressRouteCrossConnectionsListArpTableOperation(_clientDiagnostics, _pipeline, RestClient.C
 416            }
 0417            catch (Exception e)
 418            {
 0419                scope.Failed(e);
 0420                throw;
 421            }
 0422        }
 423
 424        /// <summary> Gets the route table summary associated with the express route cross connection in a resource grou
 425        /// <param name="resourceGroupName"> The name of the resource group. </param>
 426        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 427        /// <param name="peeringName"> The name of the peering. </param>
 428        /// <param name="devicePath"> The path of the device. </param>
 429        /// <param name="cancellationToken"> The cancellation token to use. </param>
 430        public virtual async Task<ExpressRouteCrossConnectionsListRoutesTableSummaryOperation> StartListRoutesTableSumma
 431        {
 0432            if (resourceGroupName == null)
 433            {
 0434                throw new ArgumentNullException(nameof(resourceGroupName));
 435            }
 0436            if (crossConnectionName == null)
 437            {
 0438                throw new ArgumentNullException(nameof(crossConnectionName));
 439            }
 0440            if (peeringName == null)
 441            {
 0442                throw new ArgumentNullException(nameof(peeringName));
 443            }
 0444            if (devicePath == null)
 445            {
 0446                throw new ArgumentNullException(nameof(devicePath));
 447            }
 448
 0449            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl
 0450            scope.Start();
 451            try
 452            {
 0453                var originalResponse = await RestClient.ListRoutesTableSummaryAsync(resourceGroupName, crossConnectionNa
 0454                return new ExpressRouteCrossConnectionsListRoutesTableSummaryOperation(_clientDiagnostics, _pipeline, Re
 455            }
 0456            catch (Exception e)
 457            {
 0458                scope.Failed(e);
 0459                throw;
 460            }
 0461        }
 462
 463        /// <summary> Gets the route table summary associated with the express route cross connection in a resource grou
 464        /// <param name="resourceGroupName"> The name of the resource group. </param>
 465        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 466        /// <param name="peeringName"> The name of the peering. </param>
 467        /// <param name="devicePath"> The path of the device. </param>
 468        /// <param name="cancellationToken"> The cancellation token to use. </param>
 469        public virtual ExpressRouteCrossConnectionsListRoutesTableSummaryOperation StartListRoutesTableSummary(string re
 470        {
 0471            if (resourceGroupName == null)
 472            {
 0473                throw new ArgumentNullException(nameof(resourceGroupName));
 474            }
 0475            if (crossConnectionName == null)
 476            {
 0477                throw new ArgumentNullException(nameof(crossConnectionName));
 478            }
 0479            if (peeringName == null)
 480            {
 0481                throw new ArgumentNullException(nameof(peeringName));
 482            }
 0483            if (devicePath == null)
 484            {
 0485                throw new ArgumentNullException(nameof(devicePath));
 486            }
 487
 0488            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl
 0489            scope.Start();
 490            try
 491            {
 0492                var originalResponse = RestClient.ListRoutesTableSummary(resourceGroupName, crossConnectionName, peering
 0493                return new ExpressRouteCrossConnectionsListRoutesTableSummaryOperation(_clientDiagnostics, _pipeline, Re
 494            }
 0495            catch (Exception e)
 496            {
 0497                scope.Failed(e);
 0498                throw;
 499            }
 0500        }
 501
 502        /// <summary> Gets the currently advertised routes table associated with the express route cross connection in a
 503        /// <param name="resourceGroupName"> The name of the resource group. </param>
 504        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 505        /// <param name="peeringName"> The name of the peering. </param>
 506        /// <param name="devicePath"> The path of the device. </param>
 507        /// <param name="cancellationToken"> The cancellation token to use. </param>
 508        public virtual async Task<ExpressRouteCrossConnectionsListRoutesTableOperation> StartListRoutesTableAsync(string
 509        {
 0510            if (resourceGroupName == null)
 511            {
 0512                throw new ArgumentNullException(nameof(resourceGroupName));
 513            }
 0514            if (crossConnectionName == null)
 515            {
 0516                throw new ArgumentNullException(nameof(crossConnectionName));
 517            }
 0518            if (peeringName == null)
 519            {
 0520                throw new ArgumentNullException(nameof(peeringName));
 521            }
 0522            if (devicePath == null)
 523            {
 0524                throw new ArgumentNullException(nameof(devicePath));
 525            }
 526
 0527            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl
 0528            scope.Start();
 529            try
 530            {
 0531                var originalResponse = await RestClient.ListRoutesTableAsync(resourceGroupName, crossConnectionName, pee
 0532                return new ExpressRouteCrossConnectionsListRoutesTableOperation(_clientDiagnostics, _pipeline, RestClien
 533            }
 0534            catch (Exception e)
 535            {
 0536                scope.Failed(e);
 0537                throw;
 538            }
 0539        }
 540
 541        /// <summary> Gets the currently advertised routes table associated with the express route cross connection in a
 542        /// <param name="resourceGroupName"> The name of the resource group. </param>
 543        /// <param name="crossConnectionName"> The name of the ExpressRouteCrossConnection. </param>
 544        /// <param name="peeringName"> The name of the peering. </param>
 545        /// <param name="devicePath"> The path of the device. </param>
 546        /// <param name="cancellationToken"> The cancellation token to use. </param>
 547        public virtual ExpressRouteCrossConnectionsListRoutesTableOperation StartListRoutesTable(string resourceGroupNam
 548        {
 0549            if (resourceGroupName == null)
 550            {
 0551                throw new ArgumentNullException(nameof(resourceGroupName));
 552            }
 0553            if (crossConnectionName == null)
 554            {
 0555                throw new ArgumentNullException(nameof(crossConnectionName));
 556            }
 0557            if (peeringName == null)
 558            {
 0559                throw new ArgumentNullException(nameof(peeringName));
 560            }
 0561            if (devicePath == null)
 562            {
 0563                throw new ArgumentNullException(nameof(devicePath));
 564            }
 565
 0566            using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl
 0567            scope.Start();
 568            try
 569            {
 0570                var originalResponse = RestClient.ListRoutesTable(resourceGroupName, crossConnectionName, peeringName, d
 0571                return new ExpressRouteCrossConnectionsListRoutesTableOperation(_clientDiagnostics, _pipeline, RestClien
 572            }
 0573            catch (Exception e)
 574            {
 0575                scope.Failed(e);
 0576                throw;
 577            }
 0578        }
 579    }
 580}