< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_TenantId()-100%100%
get_SubscriptionId()-0%100%
get_ResourceGroup()-0%100%
get_ResourceProvider()-0%100%
get_ResourceUri()-0%100%
get_OperationName()-0%100%
get_Status()-0%100%
get_Authorization()-0%100%
get_Claims()-0%100%
get_CorrelationId()-0%100%
get_HttpRequest()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\ResourceActionFailureData.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.Resources.ResourceActionFailure event. This is raised when a
 19    /// resource action operation fails.
 20    /// </summary>
 21    public partial class ResourceActionFailureData
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the ResourceActionFailureData class.
 25        /// </summary>
 126        public ResourceActionFailureData()
 27        {
 28            CustomInit();
 129        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ResourceActionFailureData class.
 33        /// </summary>
 34        /// <param name="tenantId">The tenant ID of the resource.</param>
 35        /// <param name="subscriptionId">The subscription ID of the
 36        /// resource.</param>
 37        /// <param name="resourceGroup">The resource group of the
 38        /// resource.</param>
 39        /// <param name="resourceProvider">The resource provider performing the
 40        /// operation.</param>
 41        /// <param name="resourceUri">The URI of the resource in the
 42        /// operation.</param>
 43        /// <param name="operationName">The operation that was
 44        /// performed.</param>
 45        /// <param name="status">The status of the operation.</param>
 46        /// <param name="authorization">The requested authorization for the
 47        /// operation.</param>
 48        /// <param name="claims">The properties of the claims.</param>
 49        /// <param name="correlationId">An operation ID used for
 50        /// troubleshooting.</param>
 51        /// <param name="httpRequest">The details of the operation.</param>
 052        public ResourceActionFailureData(string tenantId = default(string), string subscriptionId = default(string), str
 53        {
 054            TenantId = tenantId;
 055            SubscriptionId = subscriptionId;
 056            ResourceGroup = resourceGroup;
 057            ResourceProvider = resourceProvider;
 058            ResourceUri = resourceUri;
 059            OperationName = operationName;
 060            Status = status;
 061            Authorization = authorization;
 062            Claims = claims;
 063            CorrelationId = correlationId;
 064            HttpRequest = httpRequest;
 65            CustomInit();
 066        }
 67
 68        /// <summary>
 69        /// An initialization method that performs custom operations like setting defaults
 70        /// </summary>
 71        partial void CustomInit();
 72
 73        /// <summary>
 74        /// Gets or sets the tenant ID of the resource.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "tenantId")]
 277        public string TenantId { get; set; }
 78
 79        /// <summary>
 80        /// Gets or sets the subscription ID of the resource.
 81        /// </summary>
 82        [JsonProperty(PropertyName = "subscriptionId")]
 083        public string SubscriptionId { get; set; }
 84
 85        /// <summary>
 86        /// Gets or sets the resource group of the resource.
 87        /// </summary>
 88        [JsonProperty(PropertyName = "resourceGroup")]
 089        public string ResourceGroup { get; set; }
 90
 91        /// <summary>
 92        /// Gets or sets the resource provider performing the operation.
 93        /// </summary>
 94        [JsonProperty(PropertyName = "resourceProvider")]
 095        public string ResourceProvider { get; set; }
 96
 97        /// <summary>
 98        /// Gets or sets the URI of the resource in the operation.
 99        /// </summary>
 100        [JsonProperty(PropertyName = "resourceUri")]
 0101        public string ResourceUri { get; set; }
 102
 103        /// <summary>
 104        /// Gets or sets the operation that was performed.
 105        /// </summary>
 106        [JsonProperty(PropertyName = "operationName")]
 0107        public string OperationName { get; set; }
 108
 109        /// <summary>
 110        /// Gets or sets the status of the operation.
 111        /// </summary>
 112        [JsonProperty(PropertyName = "status")]
 0113        public string Status { get; set; }
 114
 115        /// <summary>
 116        /// Gets or sets the requested authorization for the operation.
 117        /// </summary>
 118        [JsonProperty(PropertyName = "authorization")]
 0119        public string Authorization { get; set; }
 120
 121        /// <summary>
 122        /// Gets or sets the properties of the claims.
 123        /// </summary>
 124        [JsonProperty(PropertyName = "claims")]
 0125        public string Claims { get; set; }
 126
 127        /// <summary>
 128        /// Gets or sets an operation ID used for troubleshooting.
 129        /// </summary>
 130        [JsonProperty(PropertyName = "correlationId")]
 0131        public string CorrelationId { get; set; }
 132
 133        /// <summary>
 134        /// Gets or sets the details of the operation.
 135        /// </summary>
 136        [JsonProperty(PropertyName = "httpRequest")]
 0137        public string HttpRequest { get; set; }
 138
 139    }
 140}