| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Threading; |
| | 10 | | using System.Threading.Tasks; |
| | 11 | | using Azure; |
| | 12 | | using Azure.Core; |
| | 13 | | using Azure.Core.Pipeline; |
| | 14 | | using Azure.ResourceManager.Network.Models; |
| | 15 | |
|
| | 16 | | namespace 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; |
| 0 | 23 | | internal ExpressRouteCrossConnectionsRestOperations RestClient { get; } |
| | 24 | | /// <summary> Initializes a new instance of ExpressRouteCrossConnectionsOperations for mocking. </summary> |
| 0 | 25 | | protected ExpressRouteCrossConnectionsOperations() |
| | 26 | | { |
| 0 | 27 | | } |
| | 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> |
| 0 | 33 | | internal ExpressRouteCrossConnectionsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, stri |
| | 34 | | { |
| 0 | 35 | | RestClient = new ExpressRouteCrossConnectionsRestOperations(clientDiagnostics, pipeline, subscriptionId, end |
| 0 | 36 | | _clientDiagnostics = clientDiagnostics; |
| 0 | 37 | | _pipeline = pipeline; |
| 0 | 38 | | } |
| | 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 | | { |
| 0 | 46 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.Get"); |
| 0 | 47 | | scope.Start(); |
| | 48 | | try |
| | 49 | | { |
| 0 | 50 | | return await RestClient.GetAsync(resourceGroupName, crossConnectionName, cancellationToken).ConfigureAwa |
| | 51 | | } |
| 0 | 52 | | catch (Exception e) |
| | 53 | | { |
| 0 | 54 | | scope.Failed(e); |
| 0 | 55 | | throw; |
| | 56 | | } |
| 0 | 57 | | } |
| | 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 | | { |
| 0 | 65 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.Get"); |
| 0 | 66 | | scope.Start(); |
| | 67 | | try |
| | 68 | | { |
| 0 | 69 | | return RestClient.Get(resourceGroupName, crossConnectionName, cancellationToken); |
| | 70 | | } |
| 0 | 71 | | catch (Exception e) |
| | 72 | | { |
| 0 | 73 | | scope.Failed(e); |
| 0 | 74 | | throw; |
| | 75 | | } |
| 0 | 76 | | } |
| | 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 | | { |
| 0 | 85 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.UpdateTags"); |
| 0 | 86 | | scope.Start(); |
| | 87 | | try |
| | 88 | | { |
| 0 | 89 | | return await RestClient.UpdateTagsAsync(resourceGroupName, crossConnectionName, crossConnectionParameter |
| | 90 | | } |
| 0 | 91 | | catch (Exception e) |
| | 92 | | { |
| 0 | 93 | | scope.Failed(e); |
| 0 | 94 | | throw; |
| | 95 | | } |
| 0 | 96 | | } |
| | 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 | | { |
| 0 | 105 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.UpdateTags"); |
| 0 | 106 | | scope.Start(); |
| | 107 | | try |
| | 108 | | { |
| 0 | 109 | | return RestClient.UpdateTags(resourceGroupName, crossConnectionName, crossConnectionParameters, cancella |
| | 110 | | } |
| 0 | 111 | | catch (Exception e) |
| | 112 | | { |
| 0 | 113 | | scope.Failed(e); |
| 0 | 114 | | throw; |
| | 115 | | } |
| 0 | 116 | | } |
| | 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 | | { |
| 0 | 124 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List"); |
| 0 | 125 | | scope.Start(); |
| | 126 | | try |
| | 127 | | { |
| 0 | 128 | | var response = await RestClient.ListAsync(cancellationToken).ConfigureAwait(false); |
| 0 | 129 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 130 | | } |
| 0 | 131 | | catch (Exception e) |
| | 132 | | { |
| 0 | 133 | | scope.Failed(e); |
| 0 | 134 | | throw; |
| | 135 | | } |
| 0 | 136 | | } |
| | 137 | | async Task<Page<ExpressRouteCrossConnection>> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 138 | | { |
| 0 | 139 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List"); |
| 0 | 140 | | scope.Start(); |
| | 141 | | try |
| | 142 | | { |
| 0 | 143 | | var response = await RestClient.ListNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false) |
| 0 | 144 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 145 | | } |
| 0 | 146 | | catch (Exception e) |
| | 147 | | { |
| 0 | 148 | | scope.Failed(e); |
| 0 | 149 | | throw; |
| | 150 | | } |
| 0 | 151 | | } |
| 0 | 152 | | 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 | | { |
| 0 | 161 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List"); |
| 0 | 162 | | scope.Start(); |
| | 163 | | try |
| | 164 | | { |
| 0 | 165 | | var response = RestClient.List(cancellationToken); |
| 0 | 166 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 167 | | } |
| 0 | 168 | | catch (Exception e) |
| | 169 | | { |
| 0 | 170 | | scope.Failed(e); |
| 0 | 171 | | throw; |
| | 172 | | } |
| 0 | 173 | | } |
| | 174 | | Page<ExpressRouteCrossConnection> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 175 | | { |
| 0 | 176 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.List"); |
| 0 | 177 | | scope.Start(); |
| | 178 | | try |
| | 179 | | { |
| 0 | 180 | | var response = RestClient.ListNextPage(nextLink, cancellationToken); |
| 0 | 181 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 182 | | } |
| 0 | 183 | | catch (Exception e) |
| | 184 | | { |
| 0 | 185 | | scope.Failed(e); |
| 0 | 186 | | throw; |
| | 187 | | } |
| 0 | 188 | | } |
| 0 | 189 | | 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 | | { |
| 0 | 197 | | if (resourceGroupName == null) |
| | 198 | | { |
| 0 | 199 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 200 | | } |
| | 201 | |
|
| | 202 | | async Task<Page<ExpressRouteCrossConnection>> FirstPageFunc(int? pageSizeHint) |
| | 203 | | { |
| 0 | 204 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG |
| 0 | 205 | | scope.Start(); |
| | 206 | | try |
| | 207 | | { |
| 0 | 208 | | var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, cancellationToken).Confi |
| 0 | 209 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 210 | | } |
| 0 | 211 | | catch (Exception e) |
| | 212 | | { |
| 0 | 213 | | scope.Failed(e); |
| 0 | 214 | | throw; |
| | 215 | | } |
| 0 | 216 | | } |
| | 217 | | async Task<Page<ExpressRouteCrossConnection>> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 218 | | { |
| 0 | 219 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG |
| 0 | 220 | | scope.Start(); |
| | 221 | | try |
| | 222 | | { |
| 0 | 223 | | var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, cancel |
| 0 | 224 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 225 | | } |
| 0 | 226 | | catch (Exception e) |
| | 227 | | { |
| 0 | 228 | | scope.Failed(e); |
| 0 | 229 | | throw; |
| | 230 | | } |
| 0 | 231 | | } |
| 0 | 232 | | 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 | | { |
| 0 | 240 | | if (resourceGroupName == null) |
| | 241 | | { |
| 0 | 242 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 243 | | } |
| | 244 | |
|
| | 245 | | Page<ExpressRouteCrossConnection> FirstPageFunc(int? pageSizeHint) |
| | 246 | | { |
| 0 | 247 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG |
| 0 | 248 | | scope.Start(); |
| | 249 | | try |
| | 250 | | { |
| 0 | 251 | | var response = RestClient.ListByResourceGroup(resourceGroupName, cancellationToken); |
| 0 | 252 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 253 | | } |
| 0 | 254 | | catch (Exception e) |
| | 255 | | { |
| 0 | 256 | | scope.Failed(e); |
| 0 | 257 | | throw; |
| | 258 | | } |
| 0 | 259 | | } |
| | 260 | | Page<ExpressRouteCrossConnection> NextPageFunc(string nextLink, int? pageSizeHint) |
| | 261 | | { |
| 0 | 262 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.ListByResourceG |
| 0 | 263 | | scope.Start(); |
| | 264 | | try |
| | 265 | | { |
| 0 | 266 | | var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, cancellationToken |
| 0 | 267 | | return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); |
| | 268 | | } |
| 0 | 269 | | catch (Exception e) |
| | 270 | | { |
| 0 | 271 | | scope.Failed(e); |
| 0 | 272 | | throw; |
| | 273 | | } |
| 0 | 274 | | } |
| 0 | 275 | | 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 | | { |
| 0 | 285 | | if (resourceGroupName == null) |
| | 286 | | { |
| 0 | 287 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 288 | | } |
| 0 | 289 | | if (crossConnectionName == null) |
| | 290 | | { |
| 0 | 291 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 292 | | } |
| 0 | 293 | | if (parameters == null) |
| | 294 | | { |
| 0 | 295 | | throw new ArgumentNullException(nameof(parameters)); |
| | 296 | | } |
| | 297 | |
|
| 0 | 298 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartCreateOrUpdate |
| 0 | 299 | | scope.Start(); |
| | 300 | | try |
| | 301 | | { |
| 0 | 302 | | var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, crossConnectionName, para |
| 0 | 303 | | return new ExpressRouteCrossConnectionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient |
| | 304 | | } |
| 0 | 305 | | catch (Exception e) |
| | 306 | | { |
| 0 | 307 | | scope.Failed(e); |
| 0 | 308 | | throw; |
| | 309 | | } |
| 0 | 310 | | } |
| | 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 | | { |
| 0 | 319 | | if (resourceGroupName == null) |
| | 320 | | { |
| 0 | 321 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 322 | | } |
| 0 | 323 | | if (crossConnectionName == null) |
| | 324 | | { |
| 0 | 325 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 326 | | } |
| 0 | 327 | | if (parameters == null) |
| | 328 | | { |
| 0 | 329 | | throw new ArgumentNullException(nameof(parameters)); |
| | 330 | | } |
| | 331 | |
|
| 0 | 332 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartCreateOrUpdate |
| 0 | 333 | | scope.Start(); |
| | 334 | | try |
| | 335 | | { |
| 0 | 336 | | var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, crossConnectionName, parameters, can |
| 0 | 337 | | return new ExpressRouteCrossConnectionsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient |
| | 338 | | } |
| 0 | 339 | | catch (Exception e) |
| | 340 | | { |
| 0 | 341 | | scope.Failed(e); |
| 0 | 342 | | throw; |
| | 343 | | } |
| 0 | 344 | | } |
| | 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 | | { |
| 0 | 354 | | if (resourceGroupName == null) |
| | 355 | | { |
| 0 | 356 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 357 | | } |
| 0 | 358 | | if (crossConnectionName == null) |
| | 359 | | { |
| 0 | 360 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 361 | | } |
| 0 | 362 | | if (peeringName == null) |
| | 363 | | { |
| 0 | 364 | | throw new ArgumentNullException(nameof(peeringName)); |
| | 365 | | } |
| 0 | 366 | | if (devicePath == null) |
| | 367 | | { |
| 0 | 368 | | throw new ArgumentNullException(nameof(devicePath)); |
| | 369 | | } |
| | 370 | |
|
| 0 | 371 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListArpTable") |
| 0 | 372 | | scope.Start(); |
| | 373 | | try |
| | 374 | | { |
| 0 | 375 | | var originalResponse = await RestClient.ListArpTableAsync(resourceGroupName, crossConnectionName, peerin |
| 0 | 376 | | return new ExpressRouteCrossConnectionsListArpTableOperation(_clientDiagnostics, _pipeline, RestClient.C |
| | 377 | | } |
| 0 | 378 | | catch (Exception e) |
| | 379 | | { |
| 0 | 380 | | scope.Failed(e); |
| 0 | 381 | | throw; |
| | 382 | | } |
| 0 | 383 | | } |
| | 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 | | { |
| 0 | 393 | | if (resourceGroupName == null) |
| | 394 | | { |
| 0 | 395 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 396 | | } |
| 0 | 397 | | if (crossConnectionName == null) |
| | 398 | | { |
| 0 | 399 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 400 | | } |
| 0 | 401 | | if (peeringName == null) |
| | 402 | | { |
| 0 | 403 | | throw new ArgumentNullException(nameof(peeringName)); |
| | 404 | | } |
| 0 | 405 | | if (devicePath == null) |
| | 406 | | { |
| 0 | 407 | | throw new ArgumentNullException(nameof(devicePath)); |
| | 408 | | } |
| | 409 | |
|
| 0 | 410 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListArpTable") |
| 0 | 411 | | scope.Start(); |
| | 412 | | try |
| | 413 | | { |
| 0 | 414 | | var originalResponse = RestClient.ListArpTable(resourceGroupName, crossConnectionName, peeringName, devi |
| 0 | 415 | | return new ExpressRouteCrossConnectionsListArpTableOperation(_clientDiagnostics, _pipeline, RestClient.C |
| | 416 | | } |
| 0 | 417 | | catch (Exception e) |
| | 418 | | { |
| 0 | 419 | | scope.Failed(e); |
| 0 | 420 | | throw; |
| | 421 | | } |
| 0 | 422 | | } |
| | 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 | | { |
| 0 | 432 | | if (resourceGroupName == null) |
| | 433 | | { |
| 0 | 434 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 435 | | } |
| 0 | 436 | | if (crossConnectionName == null) |
| | 437 | | { |
| 0 | 438 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 439 | | } |
| 0 | 440 | | if (peeringName == null) |
| | 441 | | { |
| 0 | 442 | | throw new ArgumentNullException(nameof(peeringName)); |
| | 443 | | } |
| 0 | 444 | | if (devicePath == null) |
| | 445 | | { |
| 0 | 446 | | throw new ArgumentNullException(nameof(devicePath)); |
| | 447 | | } |
| | 448 | |
|
| 0 | 449 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl |
| 0 | 450 | | scope.Start(); |
| | 451 | | try |
| | 452 | | { |
| 0 | 453 | | var originalResponse = await RestClient.ListRoutesTableSummaryAsync(resourceGroupName, crossConnectionNa |
| 0 | 454 | | return new ExpressRouteCrossConnectionsListRoutesTableSummaryOperation(_clientDiagnostics, _pipeline, Re |
| | 455 | | } |
| 0 | 456 | | catch (Exception e) |
| | 457 | | { |
| 0 | 458 | | scope.Failed(e); |
| 0 | 459 | | throw; |
| | 460 | | } |
| 0 | 461 | | } |
| | 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 | | { |
| 0 | 471 | | if (resourceGroupName == null) |
| | 472 | | { |
| 0 | 473 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 474 | | } |
| 0 | 475 | | if (crossConnectionName == null) |
| | 476 | | { |
| 0 | 477 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 478 | | } |
| 0 | 479 | | if (peeringName == null) |
| | 480 | | { |
| 0 | 481 | | throw new ArgumentNullException(nameof(peeringName)); |
| | 482 | | } |
| 0 | 483 | | if (devicePath == null) |
| | 484 | | { |
| 0 | 485 | | throw new ArgumentNullException(nameof(devicePath)); |
| | 486 | | } |
| | 487 | |
|
| 0 | 488 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl |
| 0 | 489 | | scope.Start(); |
| | 490 | | try |
| | 491 | | { |
| 0 | 492 | | var originalResponse = RestClient.ListRoutesTableSummary(resourceGroupName, crossConnectionName, peering |
| 0 | 493 | | return new ExpressRouteCrossConnectionsListRoutesTableSummaryOperation(_clientDiagnostics, _pipeline, Re |
| | 494 | | } |
| 0 | 495 | | catch (Exception e) |
| | 496 | | { |
| 0 | 497 | | scope.Failed(e); |
| 0 | 498 | | throw; |
| | 499 | | } |
| 0 | 500 | | } |
| | 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 | | { |
| 0 | 510 | | if (resourceGroupName == null) |
| | 511 | | { |
| 0 | 512 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 513 | | } |
| 0 | 514 | | if (crossConnectionName == null) |
| | 515 | | { |
| 0 | 516 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 517 | | } |
| 0 | 518 | | if (peeringName == null) |
| | 519 | | { |
| 0 | 520 | | throw new ArgumentNullException(nameof(peeringName)); |
| | 521 | | } |
| 0 | 522 | | if (devicePath == null) |
| | 523 | | { |
| 0 | 524 | | throw new ArgumentNullException(nameof(devicePath)); |
| | 525 | | } |
| | 526 | |
|
| 0 | 527 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl |
| 0 | 528 | | scope.Start(); |
| | 529 | | try |
| | 530 | | { |
| 0 | 531 | | var originalResponse = await RestClient.ListRoutesTableAsync(resourceGroupName, crossConnectionName, pee |
| 0 | 532 | | return new ExpressRouteCrossConnectionsListRoutesTableOperation(_clientDiagnostics, _pipeline, RestClien |
| | 533 | | } |
| 0 | 534 | | catch (Exception e) |
| | 535 | | { |
| 0 | 536 | | scope.Failed(e); |
| 0 | 537 | | throw; |
| | 538 | | } |
| 0 | 539 | | } |
| | 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 | | { |
| 0 | 549 | | if (resourceGroupName == null) |
| | 550 | | { |
| 0 | 551 | | throw new ArgumentNullException(nameof(resourceGroupName)); |
| | 552 | | } |
| 0 | 553 | | if (crossConnectionName == null) |
| | 554 | | { |
| 0 | 555 | | throw new ArgumentNullException(nameof(crossConnectionName)); |
| | 556 | | } |
| 0 | 557 | | if (peeringName == null) |
| | 558 | | { |
| 0 | 559 | | throw new ArgumentNullException(nameof(peeringName)); |
| | 560 | | } |
| 0 | 561 | | if (devicePath == null) |
| | 562 | | { |
| 0 | 563 | | throw new ArgumentNullException(nameof(devicePath)); |
| | 564 | | } |
| | 565 | |
|
| 0 | 566 | | using var scope = _clientDiagnostics.CreateScope("ExpressRouteCrossConnectionsOperations.StartListRoutesTabl |
| 0 | 567 | | scope.Start(); |
| | 568 | | try |
| | 569 | | { |
| 0 | 570 | | var originalResponse = RestClient.ListRoutesTable(resourceGroupName, crossConnectionName, peeringName, d |
| 0 | 571 | | return new ExpressRouteCrossConnectionsListRoutesTableOperation(_clientDiagnostics, _pipeline, RestClien |
| | 572 | | } |
| 0 | 573 | | catch (Exception e) |
| | 574 | | { |
| 0 | 575 | | scope.Failed(e); |
| 0 | 576 | | throw; |
| | 577 | | } |
| 0 | 578 | | } |
| | 579 | | } |
| | 580 | | } |