< Summary

Class:Microsoft.Azure.EventGrid.Models.SubscriptionDeletedEventData
Assembly:Microsoft.Azure.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\SubscriptionDeletedEventData.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:55
Line coverage:50% (3 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_EventSubscriptionId()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\SubscriptionDeletedEventData.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.EventGrid.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Schema of the Data property of an EventGridEvent for a
 18    /// Microsoft.EventGrid.SubscriptionDeletedEvent.
 19    /// </summary>
 20    public partial class SubscriptionDeletedEventData
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the SubscriptionDeletedEventData
 24        /// class.
 25        /// </summary>
 126        public SubscriptionDeletedEventData()
 27        {
 28            CustomInit();
 129        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the SubscriptionDeletedEventData
 33        /// class.
 34        /// </summary>
 35        /// <param name="eventSubscriptionId">The Azure resource ID of the
 36        /// deleted event subscription.</param>
 037        public SubscriptionDeletedEventData(string eventSubscriptionId = default(string))
 38        {
 039            EventSubscriptionId = eventSubscriptionId;
 40            CustomInit();
 041        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets the Azure resource ID of the deleted event subscription.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "eventSubscriptionId")]
 252        public string EventSubscriptionId { get; private set; }
 53
 54    }
 55}