| | 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 | |
|
| | 11 | | namespace 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> |
| 1 | 26 | | public ResourceActionFailureData() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 1 | 29 | | } |
| | 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> |
| 0 | 52 | | public ResourceActionFailureData(string tenantId = default(string), string subscriptionId = default(string), str |
| | 53 | | { |
| 0 | 54 | | TenantId = tenantId; |
| 0 | 55 | | SubscriptionId = subscriptionId; |
| 0 | 56 | | ResourceGroup = resourceGroup; |
| 0 | 57 | | ResourceProvider = resourceProvider; |
| 0 | 58 | | ResourceUri = resourceUri; |
| 0 | 59 | | OperationName = operationName; |
| 0 | 60 | | Status = status; |
| 0 | 61 | | Authorization = authorization; |
| 0 | 62 | | Claims = claims; |
| 0 | 63 | | CorrelationId = correlationId; |
| 0 | 64 | | HttpRequest = httpRequest; |
| | 65 | | CustomInit(); |
| 0 | 66 | | } |
| | 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")] |
| 2 | 77 | | public string TenantId { get; set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets or sets the subscription ID of the resource. |
| | 81 | | /// </summary> |
| | 82 | | [JsonProperty(PropertyName = "subscriptionId")] |
| 0 | 83 | | public string SubscriptionId { get; set; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets or sets the resource group of the resource. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "resourceGroup")] |
| 0 | 89 | | public string ResourceGroup { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets or sets the resource provider performing the operation. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "resourceProvider")] |
| 0 | 95 | | 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")] |
| 0 | 101 | | public string ResourceUri { get; set; } |
| | 102 | |
|
| | 103 | | /// <summary> |
| | 104 | | /// Gets or sets the operation that was performed. |
| | 105 | | /// </summary> |
| | 106 | | [JsonProperty(PropertyName = "operationName")] |
| 0 | 107 | | public string OperationName { get; set; } |
| | 108 | |
|
| | 109 | | /// <summary> |
| | 110 | | /// Gets or sets the status of the operation. |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "status")] |
| 0 | 113 | | public string Status { get; set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Gets or sets the requested authorization for the operation. |
| | 117 | | /// </summary> |
| | 118 | | [JsonProperty(PropertyName = "authorization")] |
| 0 | 119 | | public string Authorization { get; set; } |
| | 120 | |
|
| | 121 | | /// <summary> |
| | 122 | | /// Gets or sets the properties of the claims. |
| | 123 | | /// </summary> |
| | 124 | | [JsonProperty(PropertyName = "claims")] |
| 0 | 125 | | public string Claims { get; set; } |
| | 126 | |
|
| | 127 | | /// <summary> |
| | 128 | | /// Gets or sets an operation ID used for troubleshooting. |
| | 129 | | /// </summary> |
| | 130 | | [JsonProperty(PropertyName = "correlationId")] |
| 0 | 131 | | public string CorrelationId { get; set; } |
| | 132 | |
|
| | 133 | | /// <summary> |
| | 134 | | /// Gets or sets the details of the operation. |
| | 135 | | /// </summary> |
| | 136 | | [JsonProperty(PropertyName = "httpRequest")] |
| 0 | 137 | | public string HttpRequest { get; set; } |
| | 138 | |
|
| | 139 | | } |
| | 140 | | } |