-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdefender_monitor_file_activity.go
51 lines (48 loc) · 1.86 KB
/
defender_monitor_file_activity.go
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
// Code generated by Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package models
// Possible values for monitoring file activity.
type DefenderMonitorFileActivity int
const (
// User Defined, default value, no intent.
USERDEFINED_DEFENDERMONITORFILEACTIVITY DefenderMonitorFileActivity = iota
// Disable monitoring file activity.
DISABLE_DEFENDERMONITORFILEACTIVITY
// Monitor all files.
MONITORALLFILES_DEFENDERMONITORFILEACTIVITY
// Monitor incoming files only.
MONITORINCOMINGFILESONLY_DEFENDERMONITORFILEACTIVITY
// Monitor outgoing files only.
MONITOROUTGOINGFILESONLY_DEFENDERMONITORFILEACTIVITY
)
func (i DefenderMonitorFileActivity) String() string {
return []string{"userDefined", "disable", "monitorAllFiles", "monitorIncomingFilesOnly", "monitorOutgoingFilesOnly"}[i]
}
func ParseDefenderMonitorFileActivity(v string) (any, error) {
result := USERDEFINED_DEFENDERMONITORFILEACTIVITY
switch v {
case "userDefined":
result = USERDEFINED_DEFENDERMONITORFILEACTIVITY
case "disable":
result = DISABLE_DEFENDERMONITORFILEACTIVITY
case "monitorAllFiles":
result = MONITORALLFILES_DEFENDERMONITORFILEACTIVITY
case "monitorIncomingFilesOnly":
result = MONITORINCOMINGFILESONLY_DEFENDERMONITORFILEACTIVITY
case "monitorOutgoingFilesOnly":
result = MONITOROUTGOINGFILESONLY_DEFENDERMONITORFILEACTIVITY
default:
return nil, nil
}
return &result, nil
}
func SerializeDefenderMonitorFileActivity(values []DefenderMonitorFileActivity) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i DefenderMonitorFileActivity) isMultiValue() bool {
return false
}