| | 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.BlobRenamed event. |
| | 19 | | /// </summary> |
| | 20 | | public partial class StorageBlobRenamedEventData |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the StorageBlobRenamedEventData |
| | 24 | | /// class. |
| | 25 | | /// </summary> |
| 1 | 26 | | public StorageBlobRenamedEventData() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 1 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the StorageBlobRenamedEventData |
| | 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="sourceUrl">The path to the blob that was |
| | 43 | | /// renamed.</param> |
| | 44 | | /// <param name="destinationUrl">The new path to the blob after the |
| | 45 | | /// rename operation.</param> |
| | 46 | | /// <param name="sequencer">An opaque string value representing the |
| | 47 | | /// logical sequence of events for any particular blob name. Users can |
| | 48 | | /// use standard string comparison to understand the relative sequence |
| | 49 | | /// of two events on the same blob name.</param> |
| | 50 | | /// <param name="identity">The identity of the requester that triggered |
| | 51 | | /// this event.</param> |
| | 52 | | /// <param name="storageDiagnostics">For service use only. Diagnostic |
| | 53 | | /// data occasionally included by the Azure Storage service. This |
| | 54 | | /// property should be ignored by event consumers.</param> |
| 0 | 55 | | public StorageBlobRenamedEventData(string api = default(string), string clientRequestId = default(string), strin |
| | 56 | | { |
| 0 | 57 | | Api = api; |
| 0 | 58 | | ClientRequestId = clientRequestId; |
| 0 | 59 | | RequestId = requestId; |
| 0 | 60 | | SourceUrl = sourceUrl; |
| 0 | 61 | | DestinationUrl = destinationUrl; |
| 0 | 62 | | Sequencer = sequencer; |
| 0 | 63 | | Identity = identity; |
| 0 | 64 | | StorageDiagnostics = storageDiagnostics; |
| | 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 name of the API/operation that triggered this |
| | 75 | | /// event. |
| | 76 | | /// </summary> |
| | 77 | | [JsonProperty(PropertyName = "api")] |
| 0 | 78 | | public string Api { get; set; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets or sets a request id provided by the client of the storage API |
| | 82 | | /// operation that triggered this event. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "clientRequestId")] |
| 0 | 85 | | public string ClientRequestId { get; set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Gets or sets the request id generated by the storage service for |
| | 89 | | /// the storage API operation that triggered this event. |
| | 90 | | /// </summary> |
| | 91 | | [JsonProperty(PropertyName = "requestId")] |
| 0 | 92 | | public string RequestId { get; set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets or sets the path to the blob that was renamed. |
| | 96 | | /// </summary> |
| | 97 | | [JsonProperty(PropertyName = "sourceUrl")] |
| 0 | 98 | | public string SourceUrl { get; set; } |
| | 99 | |
|
| | 100 | | /// <summary> |
| | 101 | | /// Gets or sets the new path to the blob after the rename operation. |
| | 102 | | /// </summary> |
| | 103 | | [JsonProperty(PropertyName = "destinationUrl")] |
| 2 | 104 | | public string DestinationUrl { get; set; } |
| | 105 | |
|
| | 106 | | /// <summary> |
| | 107 | | /// Gets or sets an opaque string value representing the logical |
| | 108 | | /// sequence of events for any particular blob name. Users can use |
| | 109 | | /// standard string comparison to understand the relative sequence of |
| | 110 | | /// two events on the same blob name. |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "sequencer")] |
| 0 | 113 | | public string Sequencer { get; set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Gets or sets the identity of the requester that triggered this |
| | 117 | | /// event. |
| | 118 | | /// </summary> |
| | 119 | | [JsonProperty(PropertyName = "identity")] |
| 0 | 120 | | public string Identity { get; set; } |
| | 121 | |
|
| | 122 | | /// <summary> |
| | 123 | | /// Gets or sets for service use only. Diagnostic data occasionally |
| | 124 | | /// included by the Azure Storage service. This property should be |
| | 125 | | /// ignored by event consumers. |
| | 126 | | /// </summary> |
| | 127 | | [JsonProperty(PropertyName = "storageDiagnostics")] |
| 0 | 128 | | public object StorageDiagnostics { get; set; } |
| | 129 | |
|
| | 130 | | } |
| | 131 | | } |