forked from anthonyreilly/NetCoreForce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSfApiEvent.cs
358 lines (321 loc) · 9.86 KB
/
SfApiEvent.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
// SF API version v57.0
// Custom fields included: False
// Relationship objects included: True
using System;
using NetCoreForce.Client.Models;
using NetCoreForce.Client.Attributes;
using Newtonsoft.Json;
namespace NetCoreForce.Models
{
///<summary>
/// API Event
///<para>SObject Name: ApiEvent</para>
///<para>Custom Object: False</para>
///</summary>
public class SfApiEvent : SObject
{
[JsonIgnore]
public static string SObjectTypeName
{
get { return "ApiEvent"; }
}
///<summary>
/// API Event ID
/// <para>Name: Id</para>
/// <para>SF Type: id</para>
/// <para>Nillable: False</para>
///</summary>
[JsonProperty(PropertyName = "id")]
[Updateable(false), Createable(false)]
public string Id { get; set; }
///<summary>
/// Created Date
/// <para>Name: CreatedDate</para>
/// <para>SF Type: datetime</para>
/// <para>Nillable: False</para>
///</summary>
[JsonProperty(PropertyName = "createdDate")]
[Updateable(false), Createable(false)]
public DateTimeOffset? CreatedDate { get; set; }
///<summary>
/// Event Identifier
/// <para>Name: EventIdentifier</para>
/// <para>SF Type: string</para>
/// <para>Nillable: False</para>
///</summary>
[JsonProperty(PropertyName = "eventIdentifier")]
[Updateable(false), Createable(false)]
public string EventIdentifier { get; set; }
///<summary>
/// User ID
/// <para>Name: UserId</para>
/// <para>SF Type: reference</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "userId")]
[Updateable(false), Createable(false)]
public string UserId { get; set; }
///<summary>
/// ReferenceTo: User
/// <para>RelationshipName: User</para>
///</summary>
[JsonProperty(PropertyName = "user")]
[Updateable(false), Createable(false)]
public SfUser User { get; set; }
///<summary>
/// Username
/// <para>Name: Username</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "username")]
[Updateable(false), Createable(false)]
public string Username { get; set; }
///<summary>
/// Event Date
/// <para>Name: EventDate</para>
/// <para>SF Type: datetime</para>
/// <para>Nillable: False</para>
///</summary>
[JsonProperty(PropertyName = "eventDate")]
[Updateable(false), Createable(false)]
public DateTimeOffset? EventDate { get; set; }
///<summary>
/// Related Event Identifier
/// <para>Name: RelatedEventIdentifier</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "relatedEventIdentifier")]
[Updateable(false), Createable(false)]
public string RelatedEventIdentifier { get; set; }
///<summary>
/// Login History ID
/// <para>Name: LoginHistoryId</para>
/// <para>SF Type: reference</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "loginHistoryId")]
[Updateable(false), Createable(false)]
public string LoginHistoryId { get; set; }
///<summary>
/// ReferenceTo: LoginHistory
/// <para>RelationshipName: LoginHistory</para>
///</summary>
[JsonProperty(PropertyName = "loginHistory")]
[Updateable(false), Createable(false)]
public SfLoginHistory LoginHistory { get; set; }
///<summary>
/// Rows Processed
/// <para>Name: RowsProcessed</para>
/// <para>SF Type: double</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "rowsProcessed")]
[Updateable(false), Createable(false)]
public double? RowsProcessed { get; set; }
///<summary>
/// Rows Returned
/// <para>Name: RowsReturned</para>
/// <para>SF Type: double</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "rowsReturned")]
[Updateable(false), Createable(false)]
public double? RowsReturned { get; set; }
///<summary>
/// Operation
/// <para>Name: Operation</para>
/// <para>SF Type: picklist</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "operation")]
[Updateable(false), Createable(false)]
public string Operation { get; set; }
///<summary>
/// Queried Entities
/// <para>Name: QueriedEntities</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "queriedEntities")]
[Updateable(false), Createable(false)]
public string QueriedEntities { get; set; }
///<summary>
/// Transaction Security Policy ID
/// <para>Name: PolicyId</para>
/// <para>SF Type: reference</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "policyId")]
[Updateable(false), Createable(false)]
public string PolicyId { get; set; }
///<summary>
/// ReferenceTo: TransactionSecurityPolicy
/// <para>RelationshipName: Policy</para>
///</summary>
[JsonProperty(PropertyName = "policy")]
[Updateable(false), Createable(false)]
public SfTransactionSecurityPolicy Policy { get; set; }
///<summary>
/// Policy Outcome
/// <para>Name: PolicyOutcome</para>
/// <para>SF Type: picklist</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "policyOutcome")]
[Updateable(false), Createable(false)]
public string PolicyOutcome { get; set; }
///<summary>
/// Evaluation Time
/// <para>Name: EvaluationTime</para>
/// <para>SF Type: double</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "evaluationTime")]
[Updateable(false), Createable(false)]
public double? EvaluationTime { get; set; }
///<summary>
/// Session Key
/// <para>Name: SessionKey</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "sessionKey")]
[Updateable(false), Createable(false)]
public string SessionKey { get; set; }
///<summary>
/// Login Key
/// <para>Name: LoginKey</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "loginKey")]
[Updateable(false), Createable(false)]
public string LoginKey { get; set; }
///<summary>
/// Session Level
/// <para>Name: SessionLevel</para>
/// <para>SF Type: picklist</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "sessionLevel")]
[Updateable(false), Createable(false)]
public string SessionLevel { get; set; }
///<summary>
/// Source IP
/// <para>Name: SourceIp</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "sourceIp")]
[Updateable(false), Createable(false)]
public string SourceIp { get; set; }
///<summary>
/// Additional Information
/// <para>Name: AdditionalInfo</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "additionalInfo")]
[Updateable(false), Createable(false)]
public string AdditionalInfo { get; set; }
///<summary>
/// API Type
/// <para>Name: ApiType</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "apiType")]
[Updateable(false), Createable(false)]
public string ApiType { get; set; }
///<summary>
/// API Version
/// <para>Name: ApiVersion</para>
/// <para>SF Type: double</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "apiVersion")]
[Updateable(false), Createable(false)]
public double? ApiVersion { get; set; }
///<summary>
/// Application
/// <para>Name: Application</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "application")]
[Updateable(false), Createable(false)]
public string Application { get; set; }
///<summary>
/// Client
/// <para>Name: Client</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "client")]
[Updateable(false), Createable(false)]
public string Client { get; set; }
///<summary>
/// Connected App ID
/// <para>Name: ConnectedAppId</para>
/// <para>SF Type: reference</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "connectedAppId")]
[Updateable(false), Createable(false)]
public string ConnectedAppId { get; set; }
///<summary>
/// ReferenceTo: ConnectedApplication
/// <para>RelationshipName: ConnectedApp</para>
///</summary>
[JsonProperty(PropertyName = "connectedApp")]
[Updateable(false), Createable(false)]
public SfConnectedApplication ConnectedApp { get; set; }
///<summary>
/// Elapsed Time
/// <para>Name: ElapsedTime</para>
/// <para>SF Type: int</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "elapsedTime")]
[Updateable(false), Createable(false)]
public int? ElapsedTime { get; set; }
///<summary>
/// Platform
/// <para>Name: Platform</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "platform")]
[Updateable(false), Createable(false)]
public string Platform { get; set; }
///<summary>
/// Query
/// <para>Name: Query</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "query")]
[Updateable(false), Createable(false)]
public string Query { get; set; }
///<summary>
/// Records
/// <para>Name: Records</para>
/// <para>SF Type: json</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "records")]
[Updateable(false), Createable(false)]
public string Records { get; set; }
///<summary>
/// User Agent
/// <para>Name: UserAgent</para>
/// <para>SF Type: string</para>
/// <para>Nillable: True</para>
///</summary>
[JsonProperty(PropertyName = "userAgent")]
[Updateable(false), Createable(false)]
public string UserAgent { get; set; }
}
}