< Summary

Class:Azure.Messaging.EventGrid.SystemEvents.WebBackupOperationStartedEventData
Assembly:Azure.Messaging.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebBackupOperationStartedEventData.cs
C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebBackupOperationStartedEventData.Serialization.cs
Covered lines:39
Uncovered lines:8
Coverable lines:47
Total lines:117
Line coverage:82.9% (39 of 47)
Covered branches:16
Total branches:16
Branch coverage:100% (16 of 16)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-100%100%
get_AppEventTypeDetail()-0%100%
get_Name()-100%100%
get_ClientRequestId()-0%100%
get_CorrelationRequestId()-0%100%
get_RequestId()-0%100%
get_Address()-0%100%
get_Verb()-0%100%
DeserializeWebBackupOperationStartedEventData(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebBackupOperationStartedEventData.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
 8namespace Azure.Messaging.EventGrid.SystemEvents
 9{
 10    /// <summary> Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event. </
 11    public partial class WebBackupOperationStartedEventData
 12    {
 13        /// <summary> Initializes a new instance of WebBackupOperationStartedEventData. </summary>
 014        internal WebBackupOperationStartedEventData()
 15        {
 016        }
 17
 18        /// <summary> Initializes a new instance of WebBackupOperationStartedEventData. </summary>
 19        /// <param name="appEventTypeDetail"> Detail of action on the app. </param>
 20        /// <param name="name"> name of the web site that had this event. </param>
 21        /// <param name="clientRequestId"> The client request id generated by the app service for the site API operation
 22        /// <param name="correlationRequestId"> The correlation request id generated by the app service for the site API
 23        /// <param name="requestId"> The request id generated by the app service for the site API operation that trigger
 24        /// <param name="address"> HTTP request URL of this operation. </param>
 25        /// <param name="verb"> HTTP verb of this operation. </param>
 226        internal WebBackupOperationStartedEventData(AppEventTypeDetail appEventTypeDetail, string name, string clientReq
 27        {
 228            AppEventTypeDetail = appEventTypeDetail;
 229            Name = name;
 230            ClientRequestId = clientRequestId;
 231            CorrelationRequestId = correlationRequestId;
 232            RequestId = requestId;
 233            Address = address;
 234            Verb = verb;
 235        }
 36
 37        /// <summary> Detail of action on the app. </summary>
 038        public AppEventTypeDetail AppEventTypeDetail { get; }
 39        /// <summary> name of the web site that had this event. </summary>
 240        public string Name { get; }
 41        /// <summary> The client request id generated by the app service for the site API operation that triggered this 
 042        public string ClientRequestId { get; }
 43        /// <summary> The correlation request id generated by the app service for the site API operation that triggered 
 044        public string CorrelationRequestId { get; }
 45        /// <summary> The request id generated by the app service for the site API operation that triggered this event. 
 046        public string RequestId { get; }
 47        /// <summary> HTTP request URL of this operation. </summary>
 048        public string Address { get; }
 49        /// <summary> HTTP verb of this operation. </summary>
 050        public string Verb { get; }
 51    }
 52}

C:\Git\azure-sdk-for-net\sdk\eventgrid\Azure.Messaging.EventGrid\src\Generated\Models\WebBackupOperationStartedEventData.Serialization.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.Messaging.EventGrid.SystemEvents
 12{
 13    public partial class WebBackupOperationStartedEventData
 14    {
 15        internal static WebBackupOperationStartedEventData DeserializeWebBackupOperationStartedEventData(JsonElement ele
 16        {
 217            Optional<AppEventTypeDetail> appEventTypeDetail = default;
 218            Optional<string> name = default;
 219            Optional<string> clientRequestId = default;
 220            Optional<string> correlationRequestId = default;
 221            Optional<string> requestId = default;
 222            Optional<string> address = default;
 223            Optional<string> verb = default;
 3224            foreach (var property in element.EnumerateObject())
 25            {
 1426                if (property.NameEquals("appEventTypeDetail"))
 27                {
 228                    appEventTypeDetail = AppEventTypeDetail.DeserializeAppEventTypeDetail(property.Value);
 229                    continue;
 30                }
 1231                if (property.NameEquals("name"))
 32                {
 233                    name = property.Value.GetString();
 234                    continue;
 35                }
 1036                if (property.NameEquals("clientRequestId"))
 37                {
 238                    clientRequestId = property.Value.GetString();
 239                    continue;
 40                }
 841                if (property.NameEquals("correlationRequestId"))
 42                {
 243                    correlationRequestId = property.Value.GetString();
 244                    continue;
 45                }
 646                if (property.NameEquals("requestId"))
 47                {
 248                    requestId = property.Value.GetString();
 249                    continue;
 50                }
 451                if (property.NameEquals("address"))
 52                {
 253                    address = property.Value.GetString();
 254                    continue;
 55                }
 256                if (property.NameEquals("verb"))
 57                {
 258                    verb = property.Value.GetString();
 59                    continue;
 60                }
 61            }
 262            return new WebBackupOperationStartedEventData(appEventTypeDetail.Value, name.Value, clientRequestId.Value, c
 63        }
 64    }
 65}