| | | 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.Resources |
| | | 16 | | { |
| | | 17 | | /// <summary> When you delete a resource group, all of its resources are also deleted. Deleting a resource group del |
| | | 18 | | public partial class ResourceGroupsDeleteOperation : Operation<Response>, IOperationSource<Response> |
| | | 19 | | { |
| | | 20 | | private readonly ArmOperationHelpers<Response> _operation; |
| | 16 | 21 | | internal ResourceGroupsDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request reque |
| | | 22 | | { |
| | 16 | 23 | | _operation = new ArmOperationHelpers<Response>(this, clientDiagnostics, pipeline, request, response, Operati |
| | 16 | 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 /> |
| | 12 | 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 | | { |
| | 12 | 59 | | return await new ValueTask<Response>(response).ConfigureAwait(false); |
| | 12 | 60 | | } |
| | | 61 | | } |
| | | 62 | | } |