-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
StorageBlobCreatedEventData.cs
170 lines (153 loc) · 6.95 KB
/
StorageBlobCreatedEventData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.EventGrid.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// Schema of the Data property of an EventGridEvent for an
/// Microsoft.Storage.BlobCreated event.
/// </summary>
public partial class StorageBlobCreatedEventData
{
/// <summary>
/// Initializes a new instance of the StorageBlobCreatedEventData
/// class.
/// </summary>
public StorageBlobCreatedEventData()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the StorageBlobCreatedEventData
/// class.
/// </summary>
/// <param name="api">The name of the API/operation that triggered this
/// event.</param>
/// <param name="clientRequestId">A request id provided by the client
/// of the storage API operation that triggered this event.</param>
/// <param name="requestId">The request id generated by the Storage
/// service for the storage API operation that triggered this
/// event.</param>
/// <param name="eTag">The etag of the blob at the time this event was
/// triggered.</param>
/// <param name="contentType">The content type of the blob. This is the
/// same as what would be returned in the Content-Type header from the
/// blob.</param>
/// <param name="contentLength">The size of the blob in bytes. This is
/// the same as what would be returned in the Content-Length header
/// from the blob.</param>
/// <param name="contentOffset">The offset of the blob in
/// bytes.</param>
/// <param name="blobType">The type of blob.</param>
/// <param name="url">The path to the blob.</param>
/// <param name="sequencer">An opaque string value representing the
/// logical sequence of events for any particular blob name. Users can
/// use standard string comparison to understand the relative sequence
/// of two events on the same blob name.</param>
/// <param name="identity">The identity of the requester that triggered
/// this event.</param>
/// <param name="storageDiagnostics">For service use only. Diagnostic
/// data occasionally included by the Azure Storage service. This
/// property should be ignored by event consumers.</param>
public StorageBlobCreatedEventData(string api = default(string), string clientRequestId = default(string), string requestId = default(string), string eTag = default(string), string contentType = default(string), long? contentLength = default(long?), long? contentOffset = default(long?), string blobType = default(string), string url = default(string), string sequencer = default(string), string identity = default(string), object storageDiagnostics = default(object))
{
Api = api;
ClientRequestId = clientRequestId;
RequestId = requestId;
ETag = eTag;
ContentType = contentType;
ContentLength = contentLength;
ContentOffset = contentOffset;
BlobType = blobType;
Url = url;
Sequencer = sequencer;
Identity = identity;
StorageDiagnostics = storageDiagnostics;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the name of the API/operation that triggered this
/// event.
/// </summary>
[JsonProperty(PropertyName = "api")]
public string Api { get; set; }
/// <summary>
/// Gets or sets a request id provided by the client of the storage API
/// operation that triggered this event.
/// </summary>
[JsonProperty(PropertyName = "clientRequestId")]
public string ClientRequestId { get; set; }
/// <summary>
/// Gets or sets the request id generated by the Storage service for
/// the storage API operation that triggered this event.
/// </summary>
[JsonProperty(PropertyName = "requestId")]
public string RequestId { get; set; }
/// <summary>
/// Gets or sets the etag of the blob at the time this event was
/// triggered.
/// </summary>
[JsonProperty(PropertyName = "eTag")]
public string ETag { get; set; }
/// <summary>
/// Gets or sets the content type of the blob. This is the same as what
/// would be returned in the Content-Type header from the blob.
/// </summary>
[JsonProperty(PropertyName = "contentType")]
public string ContentType { get; set; }
/// <summary>
/// Gets or sets the size of the blob in bytes. This is the same as
/// what would be returned in the Content-Length header from the blob.
/// </summary>
[JsonProperty(PropertyName = "contentLength")]
public long? ContentLength { get; set; }
/// <summary>
/// Gets or sets the offset of the blob in bytes.
/// </summary>
[JsonProperty(PropertyName = "contentOffset")]
public long? ContentOffset { get; set; }
/// <summary>
/// Gets or sets the type of blob.
/// </summary>
[JsonProperty(PropertyName = "blobType")]
public string BlobType { get; set; }
/// <summary>
/// Gets or sets the path to the blob.
/// </summary>
[JsonProperty(PropertyName = "url")]
public string Url { get; set; }
/// <summary>
/// Gets or sets an opaque string value representing the logical
/// sequence of events for any particular blob name. Users can use
/// standard string comparison to understand the relative sequence of
/// two events on the same blob name.
/// </summary>
[JsonProperty(PropertyName = "sequencer")]
public string Sequencer { get; set; }
/// <summary>
/// Gets or sets the identity of the requester that triggered this
/// event.
/// </summary>
[JsonProperty(PropertyName = "identity")]
public string Identity { get; set; }
/// <summary>
/// Gets or sets for service use only. Diagnostic data occasionally
/// included by the Azure Storage service. This property should be
/// ignored by event consumers.
/// </summary>
[JsonProperty(PropertyName = "storageDiagnostics")]
public object StorageDiagnostics { get; set; }
}
}