< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
get_Id()-0%100%
get_Value()-0%100%
get_HasCompleted()-0%100%
get_HasValue()-0%100%
GetRawResponse()-0%100%
UpdateStatus(...)-0%100%
UpdateStatusAsync(...)-0%100%
WaitForCompletionAsync(...)-0%100%
WaitForCompletionAsync(...)-0%100%
Azure.Core.IOperationSource<Azure.Response>.CreateResult(...)-0%100%
Azure-Core-IOperationSource<Azure-Response>-CreateResultAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\ApplicationGatewaysStartOperation.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;
 14
 15namespace Azure.ResourceManager.Network
 16{
 17    /// <summary> Starts the specified application gateway. </summary>
 18    public partial class ApplicationGatewaysStartOperation : Operation<Response>, IOperationSource<Response>
 19    {
 20        private readonly ArmOperationHelpers<Response> _operation;
 021        internal ApplicationGatewaysStartOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request r
 22        {
 023            _operation = new ArmOperationHelpers<Response>(this, clientDiagnostics, pipeline, request, response, Operati
 024        }
 25        /// <inheritdoc />
 026        public override string Id => _operation.Id;
 27
 28        /// <inheritdoc />
 029        public override Response Value => _operation.Value;
 30
 31        /// <inheritdoc />
 032        public override bool HasCompleted => _operation.HasCompleted;
 33
 34        /// <inheritdoc />
 035        public override bool HasValue => _operation.HasValue;
 36
 37        /// <inheritdoc />
 038        public override Response GetRawResponse() => _operation.GetRawResponse();
 39
 40        /// <inheritdoc />
 041        public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(
 42
 43        /// <inheritdoc />
 044        public override ValueTask<Response> UpdateStatusAsync(CancellationToken cancellationToken = default) => _operati
 45
 46        /// <inheritdoc />
 047        public override ValueTask<Response<Response>> WaitForCompletionAsync(CancellationToken cancellationToken = defau
 48
 49        /// <inheritdoc />
 050        public override ValueTask<Response<Response>> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken
 51
 52        Response IOperationSource<Response>.CreateResult(Response response, CancellationToken cancellationToken)
 53        {
 054            return response;
 55        }
 56
 57        async ValueTask<Response> IOperationSource<Response>.CreateResultAsync(Response response, CancellationToken canc
 58        {
 059            return await new ValueTask<Response>(response).ConfigureAwait(false);
 060        }
 61    }
 62}