< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Id()-0%100%
get_Timestamp()-0%100%
get_Action()-0%100%
get_Target()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\ContainerRegistryArtifactEventData.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    /// The content of the event request message.
 18    /// </summary>
 19    public partial class ContainerRegistryArtifactEventData
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the
 23        /// ContainerRegistryArtifactEventData class.
 24        /// </summary>
 225        public ContainerRegistryArtifactEventData()
 26        {
 27            CustomInit();
 228        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the
 32        /// ContainerRegistryArtifactEventData class.
 33        /// </summary>
 34        /// <param name="id">The event ID.</param>
 35        /// <param name="timestamp">The time at which the event
 36        /// occurred.</param>
 37        /// <param name="action">The action that encompasses the provided
 38        /// event.</param>
 39        /// <param name="target">The target of the event.</param>
 040        public ContainerRegistryArtifactEventData(string id = default(string), System.DateTime? timestamp = default(Syst
 41        {
 042            Id = id;
 043            Timestamp = timestamp;
 044            Action = action;
 045            Target = target;
 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 event ID.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "id")]
 058        public string Id { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets the time at which the event occurred.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "timestamp")]
 064        public System.DateTime? Timestamp { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets the action that encompasses the provided event.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "action")]
 070        public string Action { get; set; }
 71
 72        /// <summary>
 73        /// Gets or sets the target of the event.
 74        /// </summary>
 75        [JsonProperty(PropertyName = "target")]
 676        public ContainerRegistryArtifactEventTarget Target { get; set; }
 77
 78    }
 79}