< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Key()-100%100%
get_Label()-0%100%
get_Etag()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\AppConfigurationKeyValueModifiedEventData.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 an
 18    /// Microsoft.AppConfiguration.KeyValueModified event.
 19    /// </summary>
 20    public partial class AppConfigurationKeyValueModifiedEventData
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the
 24        /// AppConfigurationKeyValueModifiedEventData class.
 25        /// </summary>
 126        public AppConfigurationKeyValueModifiedEventData()
 27        {
 28            CustomInit();
 129        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the
 33        /// AppConfigurationKeyValueModifiedEventData class.
 34        /// </summary>
 35        /// <param name="key">The key used to identify the key-value that was
 36        /// modified.</param>
 37        /// <param name="label">The label, if any, used to identify the
 38        /// key-value that was modified.</param>
 39        /// <param name="etag">The etag representing the new state of the
 40        /// key-value.</param>
 041        public AppConfigurationKeyValueModifiedEventData(string key = default(string), string label = default(string), s
 42        {
 043            Key = key;
 044            Label = label;
 045            Etag = etag;
 46            CustomInit();
 047        }
 48
 49        /// <summary>
 50        /// An initialization method that performs custom operations like setting defaults
 51        /// </summary>
 52        partial void CustomInit();
 53
 54        /// <summary>
 55        /// Gets or sets the key used to identify the key-value that was
 56        /// modified.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "key")]
 259        public string Key { get; set; }
 60
 61        /// <summary>
 62        /// Gets or sets the label, if any, used to identify the key-value that
 63        /// was modified.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "label")]
 066        public string Label { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets the etag representing the new state of the key-value.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "etag")]
 072        public string Etag { get; set; }
 73
 74    }
 75}