| | 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 | |
|
| | 15 | | namespace Azure.ResourceManager.Network |
| | 16 | | { |
| | 17 | | /// <summary> Deletes a VirtualWAN. </summary> |
| | 18 | | public partial class VirtualWansDeleteOperation : Operation<Response>, IOperationSource<Response> |
| | 19 | | { |
| | 20 | | private readonly ArmOperationHelpers<Response> _operation; |
| 0 | 21 | | internal VirtualWansDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, |
| | 22 | | { |
| 0 | 23 | | _operation = new ArmOperationHelpers<Response>(this, clientDiagnostics, pipeline, request, response, Operati |
| 0 | 24 | | } |
| | 25 | | /// <inheritdoc /> |
| 0 | 26 | | public override string Id => _operation.Id; |
| | 27 | |
|
| | 28 | | /// <inheritdoc /> |
| 0 | 29 | | public override Response Value => _operation.Value; |
| | 30 | |
|
| | 31 | | /// <inheritdoc /> |
| 0 | 32 | | public override bool HasCompleted => _operation.HasCompleted; |
| | 33 | |
|
| | 34 | | /// <inheritdoc /> |
| 0 | 35 | | public override bool HasValue => _operation.HasValue; |
| | 36 | |
|
| | 37 | | /// <inheritdoc /> |
| 0 | 38 | | public override Response GetRawResponse() => _operation.GetRawResponse(); |
| | 39 | |
|
| | 40 | | /// <inheritdoc /> |
| 0 | 41 | | public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus( |
| | 42 | |
|
| | 43 | | /// <inheritdoc /> |
| 0 | 44 | | public override ValueTask<Response> UpdateStatusAsync(CancellationToken cancellationToken = default) => _operati |
| | 45 | |
|
| | 46 | | /// <inheritdoc /> |
| 0 | 47 | | public override ValueTask<Response<Response>> WaitForCompletionAsync(CancellationToken cancellationToken = defau |
| | 48 | |
|
| | 49 | | /// <inheritdoc /> |
| 0 | 50 | | public override ValueTask<Response<Response>> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken |
| | 51 | |
|
| | 52 | | Response IOperationSource<Response>.CreateResult(Response response, CancellationToken cancellationToken) |
| | 53 | | { |
| 0 | 54 | | return response; |
| | 55 | | } |
| | 56 | |
|
| | 57 | | async ValueTask<Response> IOperationSource<Response>.CreateResultAsync(Response response, CancellationToken canc |
| | 58 | | { |
| 0 | 59 | | return await new ValueTask<Response>(response).ConfigureAwait(false); |
| 0 | 60 | | } |
| | 61 | | } |
| | 62 | | } |