forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIncident.php
More file actions
540 lines (503 loc) · 15.1 KB
/
Copy pathIncident.php
File metadata and controls
540 lines (503 loc) · 15.1 KB
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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Incident File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\SecurityNamespace\Model;
/**
* Incident class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class Incident extends \Microsoft\Graph\Model\Entity
{
/**
* Gets the assignedTo
* Owner of the incident, or null if no owner is assigned. Free editable text.
*
* @return string|null The assignedTo
*/
public function getAssignedTo()
{
if (array_key_exists("assignedTo", $this->_propDict)) {
return $this->_propDict["assignedTo"];
} else {
return null;
}
}
/**
* Sets the assignedTo
* Owner of the incident, or null if no owner is assigned. Free editable text.
*
* @param string $val The assignedTo
*
* @return Incident
*/
public function setAssignedTo($val)
{
$this->_propDict["assignedTo"] = $val;
return $this;
}
/**
* Gets the classification
* The specification for the incident. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue.
*
* @return AlertClassification|null The classification
*/
public function getClassification()
{
if (array_key_exists("classification", $this->_propDict)) {
if (is_a($this->_propDict["classification"], "\Microsoft\Graph\SecurityNamespace\Model\AlertClassification") || is_null($this->_propDict["classification"])) {
return $this->_propDict["classification"];
} else {
$this->_propDict["classification"] = new AlertClassification($this->_propDict["classification"]);
return $this->_propDict["classification"];
}
}
return null;
}
/**
* Sets the classification
* The specification for the incident. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue.
*
* @param AlertClassification $val The classification
*
* @return Incident
*/
public function setClassification($val)
{
$this->_propDict["classification"] = $val;
return $this;
}
/**
* Gets the comments
* Array of comments created by the Security Operations (SecOps) team when the incident is managed.
*
* @return array|null The comments
*/
public function getComments()
{
if (array_key_exists("comments", $this->_propDict)) {
return $this->_propDict["comments"];
} else {
return null;
}
}
/**
* Sets the comments
* Array of comments created by the Security Operations (SecOps) team when the incident is managed.
*
* @param AlertComment[] $val The comments
*
* @return Incident
*/
public function setComments($val)
{
$this->_propDict["comments"] = $val;
return $this;
}
/**
* Gets the createdDateTime
* Time when the incident was first created.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* Time when the incident was first created.
*
* @param \DateTime $val The createdDateTime
*
* @return Incident
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the customTags
* Array of custom tags associated with an incident.
*
* @return array|null The customTags
*/
public function getCustomTags()
{
if (array_key_exists("customTags", $this->_propDict)) {
return $this->_propDict["customTags"];
} else {
return null;
}
}
/**
* Sets the customTags
* Array of custom tags associated with an incident.
*
* @param string[] $val The customTags
*
* @return Incident
*/
public function setCustomTags($val)
{
$this->_propDict["customTags"] = $val;
return $this;
}
/**
* Gets the description
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
*
* @param string $val The description
*
* @return Incident
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the determination
* Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue.
*
* @return AlertDetermination|null The determination
*/
public function getDetermination()
{
if (array_key_exists("determination", $this->_propDict)) {
if (is_a($this->_propDict["determination"], "\Microsoft\Graph\SecurityNamespace\Model\AlertDetermination") || is_null($this->_propDict["determination"])) {
return $this->_propDict["determination"];
} else {
$this->_propDict["determination"] = new AlertDetermination($this->_propDict["determination"]);
return $this->_propDict["determination"];
}
}
return null;
}
/**
* Sets the determination
* Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue.
*
* @param AlertDetermination $val The determination
*
* @return Incident
*/
public function setDetermination($val)
{
$this->_propDict["determination"] = $val;
return $this;
}
/**
* Gets the displayName
* The incident name.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* The incident name.
*
* @param string $val The displayName
*
* @return Incident
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the incidentWebUrl
* The URL for the incident page in the Microsoft 365 Defender portal.
*
* @return string|null The incidentWebUrl
*/
public function getIncidentWebUrl()
{
if (array_key_exists("incidentWebUrl", $this->_propDict)) {
return $this->_propDict["incidentWebUrl"];
} else {
return null;
}
}
/**
* Sets the incidentWebUrl
* The URL for the incident page in the Microsoft 365 Defender portal.
*
* @param string $val The incidentWebUrl
*
* @return Incident
*/
public function setIncidentWebUrl($val)
{
$this->_propDict["incidentWebUrl"] = $val;
return $this;
}
/**
* Gets the lastModifiedBy
*
* @return string|null The lastModifiedBy
*/
public function getLastModifiedBy()
{
if (array_key_exists("lastModifiedBy", $this->_propDict)) {
return $this->_propDict["lastModifiedBy"];
} else {
return null;
}
}
/**
* Sets the lastModifiedBy
*
* @param string $val The lastModifiedBy
*
* @return Incident
*/
public function setLastModifiedBy($val)
{
$this->_propDict["lastModifiedBy"] = $val;
return $this;
}
/**
* Gets the lastUpdateDateTime
* Time when the incident was last updated.
*
* @return \DateTime|null The lastUpdateDateTime
*/
public function getLastUpdateDateTime()
{
if (array_key_exists("lastUpdateDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastUpdateDateTime"], "\DateTime") || is_null($this->_propDict["lastUpdateDateTime"])) {
return $this->_propDict["lastUpdateDateTime"];
} else {
$this->_propDict["lastUpdateDateTime"] = new \DateTime($this->_propDict["lastUpdateDateTime"]);
return $this->_propDict["lastUpdateDateTime"];
}
}
return null;
}
/**
* Sets the lastUpdateDateTime
* Time when the incident was last updated.
*
* @param \DateTime $val The lastUpdateDateTime
*
* @return Incident
*/
public function setLastUpdateDateTime($val)
{
$this->_propDict["lastUpdateDateTime"] = $val;
return $this;
}
/**
* Gets the redirectIncidentId
* Only populated in case an incident is grouped together with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected.
*
* @return string|null The redirectIncidentId
*/
public function getRedirectIncidentId()
{
if (array_key_exists("redirectIncidentId", $this->_propDict)) {
return $this->_propDict["redirectIncidentId"];
} else {
return null;
}
}
/**
* Sets the redirectIncidentId
* Only populated in case an incident is grouped together with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected.
*
* @param string $val The redirectIncidentId
*
* @return Incident
*/
public function setRedirectIncidentId($val)
{
$this->_propDict["redirectIncidentId"] = $val;
return $this;
}
/**
* Gets the severity
* Indicates the possible impact on assets. The higher the severity, the bigger the impact. Typically higher severity items require the most immediate attention. Possible values are: unknown, informational, low, medium, high, unknownFutureValue.
*
* @return AlertSeverity|null The severity
*/
public function getSeverity()
{
if (array_key_exists("severity", $this->_propDict)) {
if (is_a($this->_propDict["severity"], "\Microsoft\Graph\SecurityNamespace\Model\AlertSeverity") || is_null($this->_propDict["severity"])) {
return $this->_propDict["severity"];
} else {
$this->_propDict["severity"] = new AlertSeverity($this->_propDict["severity"]);
return $this->_propDict["severity"];
}
}
return null;
}
/**
* Sets the severity
* Indicates the possible impact on assets. The higher the severity, the bigger the impact. Typically higher severity items require the most immediate attention. Possible values are: unknown, informational, low, medium, high, unknownFutureValue.
*
* @param AlertSeverity $val The severity
*
* @return Incident
*/
public function setSeverity($val)
{
$this->_propDict["severity"] = $val;
return $this;
}
/**
* Gets the status
* The status of the incident. Possible values are: active, resolved, inProgress, redirected, unknownFutureValue, and awaitingAction.
*
* @return IncidentStatus|null The status
*/
public function getStatus()
{
if (array_key_exists("status", $this->_propDict)) {
if (is_a($this->_propDict["status"], "\Microsoft\Graph\SecurityNamespace\Model\IncidentStatus") || is_null($this->_propDict["status"])) {
return $this->_propDict["status"];
} else {
$this->_propDict["status"] = new IncidentStatus($this->_propDict["status"]);
return $this->_propDict["status"];
}
}
return null;
}
/**
* Sets the status
* The status of the incident. Possible values are: active, resolved, inProgress, redirected, unknownFutureValue, and awaitingAction.
*
* @param IncidentStatus $val The status
*
* @return Incident
*/
public function setStatus($val)
{
$this->_propDict["status"] = $val;
return $this;
}
/**
* Gets the systemTags
*
* @return array|null The systemTags
*/
public function getSystemTags()
{
if (array_key_exists("systemTags", $this->_propDict)) {
return $this->_propDict["systemTags"];
} else {
return null;
}
}
/**
* Sets the systemTags
*
* @param string[] $val The systemTags
*
* @return Incident
*/
public function setSystemTags($val)
{
$this->_propDict["systemTags"] = $val;
return $this;
}
/**
* Gets the tenantId
* The Azure Active Directory tenant in which the alert was created.
*
* @return string|null The tenantId
*/
public function getTenantId()
{
if (array_key_exists("tenantId", $this->_propDict)) {
return $this->_propDict["tenantId"];
} else {
return null;
}
}
/**
* Sets the tenantId
* The Azure Active Directory tenant in which the alert was created.
*
* @param string $val The tenantId
*
* @return Incident
*/
public function setTenantId($val)
{
$this->_propDict["tenantId"] = $val;
return $this;
}
/**
* Gets the alerts
* The list of related alerts. Supports $expand.
*
* @return array|null The alerts
*/
public function getAlerts()
{
if (array_key_exists("alerts", $this->_propDict)) {
return $this->_propDict["alerts"];
} else {
return null;
}
}
/**
* Sets the alerts
* The list of related alerts. Supports $expand.
*
* @param Alert[] $val The alerts
*
* @return Incident
*/
public function setAlerts($val)
{
$this->_propDict["alerts"] = $val;
return $this;
}
}