| | 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.EventHub.CaptureFileCreated event. |
| | 19 | | /// </summary> |
| | 20 | | public partial class EventHubCaptureFileCreatedEventData |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the |
| | 24 | | /// EventHubCaptureFileCreatedEventData class. |
| | 25 | | /// </summary> |
| 1 | 26 | | public EventHubCaptureFileCreatedEventData() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 1 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the |
| | 33 | | /// EventHubCaptureFileCreatedEventData class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="fileurl">The path to the capture file.</param> |
| | 36 | | /// <param name="fileType">The file type of the capture file.</param> |
| | 37 | | /// <param name="partitionId">The shard ID.</param> |
| | 38 | | /// <param name="sizeInBytes">The file size.</param> |
| | 39 | | /// <param name="eventCount">The number of events in the file.</param> |
| | 40 | | /// <param name="firstSequenceNumber">The smallest sequence number from |
| | 41 | | /// the queue.</param> |
| | 42 | | /// <param name="lastSequenceNumber">The last sequence number from the |
| | 43 | | /// queue.</param> |
| | 44 | | /// <param name="firstEnqueueTime">The first time from the |
| | 45 | | /// queue.</param> |
| | 46 | | /// <param name="lastEnqueueTime">The last time from the queue.</param> |
| 0 | 47 | | public EventHubCaptureFileCreatedEventData(string fileurl = default(string), string fileType = default(string), |
| | 48 | | { |
| 0 | 49 | | Fileurl = fileurl; |
| 0 | 50 | | FileType = fileType; |
| 0 | 51 | | PartitionId = partitionId; |
| 0 | 52 | | SizeInBytes = sizeInBytes; |
| 0 | 53 | | EventCount = eventCount; |
| 0 | 54 | | FirstSequenceNumber = firstSequenceNumber; |
| 0 | 55 | | LastSequenceNumber = lastSequenceNumber; |
| 0 | 56 | | FirstEnqueueTime = firstEnqueueTime; |
| 0 | 57 | | LastEnqueueTime = lastEnqueueTime; |
| | 58 | | CustomInit(); |
| 0 | 59 | | } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// An initialization method that performs custom operations like setting defaults |
| | 63 | | /// </summary> |
| | 64 | | partial void CustomInit(); |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets the path to the capture file. |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "fileurl")] |
| 0 | 70 | | public string Fileurl { get; set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets the file type of the capture file. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "fileType")] |
| 2 | 76 | | public string FileType { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets or sets the shard ID. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "partitionId")] |
| 0 | 82 | | public string PartitionId { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets the file size. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "sizeInBytes")] |
| 0 | 88 | | public int? SizeInBytes { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets or sets the number of events in the file. |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "eventCount")] |
| 0 | 94 | | public int? EventCount { get; set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets or sets the smallest sequence number from the queue. |
| | 98 | | /// </summary> |
| | 99 | | [JsonProperty(PropertyName = "firstSequenceNumber")] |
| 0 | 100 | | public int? FirstSequenceNumber { get; set; } |
| | 101 | |
|
| | 102 | | /// <summary> |
| | 103 | | /// Gets or sets the last sequence number from the queue. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "lastSequenceNumber")] |
| 0 | 106 | | public int? LastSequenceNumber { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Gets or sets the first time from the queue. |
| | 110 | | /// </summary> |
| | 111 | | [JsonProperty(PropertyName = "firstEnqueueTime")] |
| 0 | 112 | | public System.DateTime? FirstEnqueueTime { get; set; } |
| | 113 | |
|
| | 114 | | /// <summary> |
| | 115 | | /// Gets or sets the last time from the queue. |
| | 116 | | /// </summary> |
| | 117 | | [JsonProperty(PropertyName = "lastEnqueueTime")] |
| 0 | 118 | | public System.DateTime? LastEnqueueTime { get; set; } |
| | 119 | |
|
| | 120 | | } |
| | 121 | | } |