< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_VaultName()-0%100%
get_ObjectType()-0%100%
get_ObjectName()-0%100%
get_Version()-0%100%
get_Nbf()-0%100%
get_Exp()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\KeyVaultSecretNewVersionCreatedEventData.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    /// SecretNewVersionCreated event.
 19    /// </summary>
 20    public partial class KeyVaultSecretNewVersionCreatedEventData
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the
 24        /// KeyVaultSecretNewVersionCreatedEventData class.
 25        /// </summary>
 026        public KeyVaultSecretNewVersionCreatedEventData()
 27        {
 28            CustomInit();
 029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the
 33        /// KeyVaultSecretNewVersionCreatedEventData class.
 34        /// </summary>
 35        /// <param name="id">The id of the object that triggered this
 36        /// event.</param>
 37        /// <param name="vaultName">Key vault name of the object that triggered
 38        /// this event.</param>
 39        /// <param name="objectType">The type of the object that triggered this
 40        /// event</param>
 41        /// <param name="objectName">The name of the object that triggered this
 42        /// event</param>
 43        /// <param name="version">The version of the object that triggered this
 44        /// event</param>
 45        /// <param name="nbf">Not before date of the object that triggered this
 46        /// event</param>
 47        /// <param name="exp">The expiration date of the object that triggered
 48        /// this event</param>
 049        public KeyVaultSecretNewVersionCreatedEventData(string id = default(string), string vaultName = default(string),
 50        {
 051            Id = id;
 052            VaultName = vaultName;
 053            ObjectType = objectType;
 054            ObjectName = objectName;
 055            Version = version;
 056            Nbf = nbf;
 057            Exp = exp;
 58            CustomInit();
 059        }
 60
 61        /// <summary>
 62        /// An initialization method that performs custom operations like setting defaults
 63        /// </summary>
 64        partial void CustomInit();
 65
 66        /// <summary>
 67        /// Gets or sets the id of the object that triggered this event.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "id")]
 070        public string Id { get; set; }
 71
 72        /// <summary>
 73        /// Gets or sets key vault name of the object that triggered this
 74        /// event.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "vaultName")]
 077        public string VaultName { get; set; }
 78
 79        /// <summary>
 80        /// Gets or sets the type of the object that triggered this event
 81        /// </summary>
 82        [JsonProperty(PropertyName = "objectType")]
 083        public string ObjectType { get; set; }
 84
 85        /// <summary>
 86        /// Gets or sets the name of the object that triggered this event
 87        /// </summary>
 88        [JsonProperty(PropertyName = "objectName")]
 089        public string ObjectName { get; set; }
 90
 91        /// <summary>
 92        /// Gets or sets the version of the object that triggered this event
 93        /// </summary>
 94        [JsonProperty(PropertyName = "version")]
 095        public string Version { get; set; }
 96
 97        /// <summary>
 98        /// Gets or sets not before date of the object that triggered this
 99        /// event
 100        /// </summary>
 101        [JsonProperty(PropertyName = "nbf")]
 0102        public double? Nbf { get; set; }
 103
 104        /// <summary>
 105        /// Gets or sets the expiration date of the object that triggered this
 106        /// event
 107        /// </summary>
 108        [JsonProperty(PropertyName = "exp")]
 0109        public double? Exp { get; set; }
 110
 111    }
 112}