< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%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%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\WebSlotSwapWithPreviewStartedEventData.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.Web.SlotSwapWithPreviewStarted event.
 19    /// </summary>
 20    public partial class WebSlotSwapWithPreviewStartedEventData
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the
 24        /// WebSlotSwapWithPreviewStartedEventData class.
 25        /// </summary>
 126        public WebSlotSwapWithPreviewStartedEventData()
 27        {
 28            CustomInit();
 129        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the
 33        /// WebSlotSwapWithPreviewStartedEventData class.
 34        /// </summary>
 35        /// <param name="name">name of the web site that had this
 36        /// event.</param>
 37        /// <param name="clientRequestId">The client request id generated by
 38        /// the app service for the site API operation that triggered this
 39        /// event.</param>
 40        /// <param name="correlationRequestId">The correlation request id
 41        /// generated by the app service for the site API operation that
 42        /// triggered this event.</param>
 43        /// <param name="requestId">The request id generated by the app service
 44        /// for the site API operation that triggered this event.</param>
 45        /// <param name="address">HTTP request URL of this operation.</param>
 46        /// <param name="verb">HTTP verb of this operation.</param>
 047        public WebSlotSwapWithPreviewStartedEventData(AppEventTypeDetail appEventTypeDetail = default(AppEventTypeDetail
 48        {
 049            AppEventTypeDetail = appEventTypeDetail;
 050            Name = name;
 051            ClientRequestId = clientRequestId;
 052            CorrelationRequestId = correlationRequestId;
 053            RequestId = requestId;
 054            Address = address;
 055            Verb = verb;
 56            CustomInit();
 057        }
 58
 59        /// <summary>
 60        /// An initialization method that performs custom operations like setting defaults
 61        /// </summary>
 62        partial void CustomInit();
 63
 64        /// <summary>
 65        /// </summary>
 66        [JsonProperty(PropertyName = "appEventTypeDetail")]
 067        public AppEventTypeDetail AppEventTypeDetail { get; set; }
 68
 69        /// <summary>
 70        /// Gets or sets name of the web site that had this event.
 71        /// </summary>
 72        [JsonProperty(PropertyName = "name")]
 273        public string Name { get; set; }
 74
 75        /// <summary>
 76        /// Gets or sets the client request id generated by the app service for
 77        /// the site API operation that triggered this event.
 78        /// </summary>
 79        [JsonProperty(PropertyName = "clientRequestId")]
 080        public string ClientRequestId { get; set; }
 81
 82        /// <summary>
 83        /// Gets or sets the correlation request id generated by the app
 84        /// service for the site API operation that triggered this event.
 85        /// </summary>
 86        [JsonProperty(PropertyName = "correlationRequestId")]
 087        public string CorrelationRequestId { get; set; }
 88
 89        /// <summary>
 90        /// Gets or sets the request id generated by the app service for the
 91        /// site API operation that triggered this event.
 92        /// </summary>
 93        [JsonProperty(PropertyName = "requestId")]
 094        public string RequestId { get; set; }
 95
 96        /// <summary>
 97        /// Gets or sets HTTP request URL of this operation.
 98        /// </summary>
 99        [JsonProperty(PropertyName = "address")]
 0100        public string Address { get; set; }
 101
 102        /// <summary>
 103        /// Gets or sets HTTP verb of this operation.
 104        /// </summary>
 105        [JsonProperty(PropertyName = "verb")]
 0106        public string Verb { get; set; }
 107
 108    }
 109}