| | 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 an |
| | 18 | | /// Microsoft.Storage.BlobCreated event. |
| | 19 | | /// </summary> |
| | 20 | | public partial class StorageBlobCreatedEventData |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the StorageBlobCreatedEventData |
| | 24 | | /// class. |
| | 25 | | /// </summary> |
| 2 | 26 | | public StorageBlobCreatedEventData() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 2 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the StorageBlobCreatedEventData |
| | 33 | | /// class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="api">The name of the API/operation that triggered this |
| | 36 | | /// event.</param> |
| | 37 | | /// <param name="clientRequestId">A request id provided by the client |
| | 38 | | /// of the storage API operation that triggered this event.</param> |
| | 39 | | /// <param name="requestId">The request id generated by the Storage |
| | 40 | | /// service for the storage API operation that triggered this |
| | 41 | | /// event.</param> |
| | 42 | | /// <param name="eTag">The etag of the blob at the time this event was |
| | 43 | | /// triggered.</param> |
| | 44 | | /// <param name="contentType">The content type of the blob. This is the |
| | 45 | | /// same as what would be returned in the Content-Type header from the |
| | 46 | | /// blob.</param> |
| | 47 | | /// <param name="contentLength">The size of the blob in bytes. This is |
| | 48 | | /// the same as what would be returned in the Content-Length header |
| | 49 | | /// from the blob.</param> |
| | 50 | | /// <param name="contentOffset">The offset of the blob in |
| | 51 | | /// bytes.</param> |
| | 52 | | /// <param name="blobType">The type of blob.</param> |
| | 53 | | /// <param name="url">The path to the blob.</param> |
| | 54 | | /// <param name="sequencer">An opaque string value representing the |
| | 55 | | /// logical sequence of events for any particular blob name. Users can |
| | 56 | | /// use standard string comparison to understand the relative sequence |
| | 57 | | /// of two events on the same blob name.</param> |
| | 58 | | /// <param name="identity">The identity of the requester that triggered |
| | 59 | | /// this event.</param> |
| | 60 | | /// <param name="storageDiagnostics">For service use only. Diagnostic |
| | 61 | | /// data occasionally included by the Azure Storage service. This |
| | 62 | | /// property should be ignored by event consumers.</param> |
| 0 | 63 | | public StorageBlobCreatedEventData(string api = default(string), string clientRequestId = default(string), strin |
| | 64 | | { |
| 0 | 65 | | Api = api; |
| 0 | 66 | | ClientRequestId = clientRequestId; |
| 0 | 67 | | RequestId = requestId; |
| 0 | 68 | | ETag = eTag; |
| 0 | 69 | | ContentType = contentType; |
| 0 | 70 | | ContentLength = contentLength; |
| 0 | 71 | | ContentOffset = contentOffset; |
| 0 | 72 | | BlobType = blobType; |
| 0 | 73 | | Url = url; |
| 0 | 74 | | Sequencer = sequencer; |
| 0 | 75 | | Identity = identity; |
| 0 | 76 | | StorageDiagnostics = storageDiagnostics; |
| | 77 | | CustomInit(); |
| 0 | 78 | | } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// An initialization method that performs custom operations like setting defaults |
| | 82 | | /// </summary> |
| | 83 | | partial void CustomInit(); |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets or sets the name of the API/operation that triggered this |
| | 87 | | /// event. |
| | 88 | | /// </summary> |
| | 89 | | [JsonProperty(PropertyName = "api")] |
| 0 | 90 | | public string Api { get; set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets or sets a request id provided by the client of the storage API |
| | 94 | | /// operation that triggered this event. |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "clientRequestId")] |
| 0 | 97 | | public string ClientRequestId { get; set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets or sets the request id generated by the Storage service for |
| | 101 | | /// the storage API operation that triggered this event. |
| | 102 | | /// </summary> |
| | 103 | | [JsonProperty(PropertyName = "requestId")] |
| 0 | 104 | | public string RequestId { get; set; } |
| | 105 | |
|
| | 106 | | /// <summary> |
| | 107 | | /// Gets or sets the etag of the blob at the time this event was |
| | 108 | | /// triggered. |
| | 109 | | /// </summary> |
| | 110 | | [JsonProperty(PropertyName = "eTag")] |
| 0 | 111 | | public string ETag { get; set; } |
| | 112 | |
|
| | 113 | | /// <summary> |
| | 114 | | /// Gets or sets the content type of the blob. This is the same as what |
| | 115 | | /// would be returned in the Content-Type header from the blob. |
| | 116 | | /// </summary> |
| | 117 | | [JsonProperty(PropertyName = "contentType")] |
| 0 | 118 | | public string ContentType { get; set; } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// Gets or sets the size of the blob in bytes. This is the same as |
| | 122 | | /// what would be returned in the Content-Length header from the blob. |
| | 123 | | /// </summary> |
| | 124 | | [JsonProperty(PropertyName = "contentLength")] |
| 0 | 125 | | public long? ContentLength { get; set; } |
| | 126 | |
|
| | 127 | | /// <summary> |
| | 128 | | /// Gets or sets the offset of the blob in bytes. |
| | 129 | | /// </summary> |
| | 130 | | [JsonProperty(PropertyName = "contentOffset")] |
| 0 | 131 | | public long? ContentOffset { get; set; } |
| | 132 | |
|
| | 133 | | /// <summary> |
| | 134 | | /// Gets or sets the type of blob. |
| | 135 | | /// </summary> |
| | 136 | | [JsonProperty(PropertyName = "blobType")] |
| 0 | 137 | | public string BlobType { get; set; } |
| | 138 | |
|
| | 139 | | /// <summary> |
| | 140 | | /// Gets or sets the path to the blob. |
| | 141 | | /// </summary> |
| | 142 | | [JsonProperty(PropertyName = "url")] |
| 3 | 143 | | public string Url { get; set; } |
| | 144 | |
|
| | 145 | | /// <summary> |
| | 146 | | /// Gets or sets an opaque string value representing the logical |
| | 147 | | /// sequence of events for any particular blob name. Users can use |
| | 148 | | /// standard string comparison to understand the relative sequence of |
| | 149 | | /// two events on the same blob name. |
| | 150 | | /// </summary> |
| | 151 | | [JsonProperty(PropertyName = "sequencer")] |
| 0 | 152 | | public string Sequencer { get; set; } |
| | 153 | |
|
| | 154 | | /// <summary> |
| | 155 | | /// Gets or sets the identity of the requester that triggered this |
| | 156 | | /// event. |
| | 157 | | /// </summary> |
| | 158 | | [JsonProperty(PropertyName = "identity")] |
| 0 | 159 | | public string Identity { get; set; } |
| | 160 | |
|
| | 161 | | /// <summary> |
| | 162 | | /// Gets or sets for service use only. Diagnostic data occasionally |
| | 163 | | /// included by the Azure Storage service. This property should be |
| | 164 | | /// ignored by event consumers. |
| | 165 | | /// </summary> |
| | 166 | | [JsonProperty(PropertyName = "storageDiagnostics")] |
| 0 | 167 | | public object StorageDiagnostics { get; set; } |
| | 168 | |
|
| | 169 | | } |
| | 170 | | } |