< Summary

Class:Azure.Analytics.Synapse.Artifacts.TriggerSubscribeTriggerToEventsOperation
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\TriggerSubscribeTriggerToEventsOperation.cs
Covered lines:0
Uncovered lines:18
Coverable lines:18
Total lines:66
Line coverage:0% (0 of 18)
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.Analytics.Synapse.Artifacts.Models.TriggerSubscriptionOperationStatus>.CreateResult(...)-0%100%
Azure-Core-IOperationSource<Azure-Analytics-Synapse-Artifacts-Models-TriggerSubscriptionOperationStatus>-CreateResultAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\TriggerSubscribeTriggerToEventsOperation.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.Text.Json;
 10using System.Threading;
 11using System.Threading.Tasks;
 12using Azure;
 13using Azure.Analytics.Synapse.Artifacts.Models;
 14using Azure.Core;
 15using Azure.Core.Pipeline;
 16
 17namespace Azure.Analytics.Synapse.Artifacts
 18{
 19    /// <summary> Subscribe event trigger to events. </summary>
 20    public partial class TriggerSubscribeTriggerToEventsOperation : Operation<TriggerSubscriptionOperationStatus>, IOper
 21    {
 22        private readonly ArmOperationHelpers<TriggerSubscriptionOperationStatus> _operation;
 023        internal TriggerSubscribeTriggerToEventsOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Re
 24        {
 025            _operation = new ArmOperationHelpers<TriggerSubscriptionOperationStatus>(this, clientDiagnostics, pipeline, 
 026        }
 27        /// <inheritdoc />
 028        public override string Id => _operation.Id;
 29
 30        /// <inheritdoc />
 031        public override TriggerSubscriptionOperationStatus Value => _operation.Value;
 32
 33        /// <inheritdoc />
 034        public override bool HasCompleted => _operation.HasCompleted;
 35
 36        /// <inheritdoc />
 037        public override bool HasValue => _operation.HasValue;
 38
 39        /// <inheritdoc />
 040        public override Response GetRawResponse() => _operation.GetRawResponse();
 41
 42        /// <inheritdoc />
 043        public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(
 44
 45        /// <inheritdoc />
 046        public override ValueTask<Response> UpdateStatusAsync(CancellationToken cancellationToken = default) => _operati
 47
 48        /// <inheritdoc />
 049        public override ValueTask<Response<TriggerSubscriptionOperationStatus>> WaitForCompletionAsync(CancellationToken
 50
 51        /// <inheritdoc />
 052        public override ValueTask<Response<TriggerSubscriptionOperationStatus>> WaitForCompletionAsync(TimeSpan pollingI
 53
 54        TriggerSubscriptionOperationStatus IOperationSource<TriggerSubscriptionOperationStatus>.CreateResult(Response re
 55        {
 056            using var document = JsonDocument.Parse(response.ContentStream);
 057            return TriggerSubscriptionOperationStatus.DeserializeTriggerSubscriptionOperationStatus(document.RootElement
 058        }
 59
 60        async ValueTask<TriggerSubscriptionOperationStatus> IOperationSource<TriggerSubscriptionOperationStatus>.CreateR
 61        {
 062            using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).Confi
 063            return TriggerSubscriptionOperationStatus.DeserializeTriggerSubscriptionOperationStatus(document.RootElement
 064        }
 65    }
 66}