-
Notifications
You must be signed in to change notification settings - Fork 82
/
event_type.go
89 lines (79 loc) · 3.03 KB
/
event_type.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
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
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// OS Management API
//
// API for the OS Management service. Use these API operations for working
// with Managed instances and Managed instance groups.
//
package osmanagement
import (
"strings"
)
// EventTypeEnum Enum with underlying type: string
type EventTypeEnum string
// Set of constants representing the allowable values for EventTypeEnum
const (
EventTypeKernelOops EventTypeEnum = "KERNEL_OOPS"
EventTypeKernelCrash EventTypeEnum = "KERNEL_CRASH"
EventTypeCrash EventTypeEnum = "CRASH"
EventTypeExploitAttempt EventTypeEnum = "EXPLOIT_ATTEMPT"
EventTypeCompliance EventTypeEnum = "COMPLIANCE"
EventTypeTuningSuggestion EventTypeEnum = "TUNING_SUGGESTION"
EventTypeTuningApplied EventTypeEnum = "TUNING_APPLIED"
EventTypeSecurity EventTypeEnum = "SECURITY"
EventTypeError EventTypeEnum = "ERROR"
EventTypeWarning EventTypeEnum = "WARNING"
)
var mappingEventTypeEnum = map[string]EventTypeEnum{
"KERNEL_OOPS": EventTypeKernelOops,
"KERNEL_CRASH": EventTypeKernelCrash,
"CRASH": EventTypeCrash,
"EXPLOIT_ATTEMPT": EventTypeExploitAttempt,
"COMPLIANCE": EventTypeCompliance,
"TUNING_SUGGESTION": EventTypeTuningSuggestion,
"TUNING_APPLIED": EventTypeTuningApplied,
"SECURITY": EventTypeSecurity,
"ERROR": EventTypeError,
"WARNING": EventTypeWarning,
}
var mappingEventTypeEnumLowerCase = map[string]EventTypeEnum{
"kernel_oops": EventTypeKernelOops,
"kernel_crash": EventTypeKernelCrash,
"crash": EventTypeCrash,
"exploit_attempt": EventTypeExploitAttempt,
"compliance": EventTypeCompliance,
"tuning_suggestion": EventTypeTuningSuggestion,
"tuning_applied": EventTypeTuningApplied,
"security": EventTypeSecurity,
"error": EventTypeError,
"warning": EventTypeWarning,
}
// GetEventTypeEnumValues Enumerates the set of values for EventTypeEnum
func GetEventTypeEnumValues() []EventTypeEnum {
values := make([]EventTypeEnum, 0)
for _, v := range mappingEventTypeEnum {
values = append(values, v)
}
return values
}
// GetEventTypeEnumStringValues Enumerates the set of values in String for EventTypeEnum
func GetEventTypeEnumStringValues() []string {
return []string{
"KERNEL_OOPS",
"KERNEL_CRASH",
"CRASH",
"EXPLOIT_ATTEMPT",
"COMPLIANCE",
"TUNING_SUGGESTION",
"TUNING_APPLIED",
"SECURITY",
"ERROR",
"WARNING",
}
}
// GetMappingEventTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingEventTypeEnum(val string) (EventTypeEnum, bool) {
enum, ok := mappingEventTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}