-
Notifications
You must be signed in to change notification settings - Fork 80
/
operation_types.go
96 lines (86 loc) · 3.96 KB
/
operation_types.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
90
91
92
93
94
95
96
// 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.
// Logging Management API
//
// Use the Logging Management API to create, read, list, update, and delete log groups, log objects, and agent configurations.
//
package logging
import (
"strings"
)
// OperationTypesEnum Enum with underlying type: string
type OperationTypesEnum string
// Set of constants representing the allowable values for OperationTypesEnum
const (
OperationTypesCreateLog OperationTypesEnum = "CREATE_LOG"
OperationTypesUpdateLog OperationTypesEnum = "UPDATE_LOG"
OperationTypesDeleteLog OperationTypesEnum = "DELETE_LOG"
OperationTypesMoveLog OperationTypesEnum = "MOVE_LOG"
OperationTypesCreateLogGroup OperationTypesEnum = "CREATE_LOG_GROUP"
OperationTypesUpdateLogGroup OperationTypesEnum = "UPDATE_LOG_GROUP"
OperationTypesDeleteLogGroup OperationTypesEnum = "DELETE_LOG_GROUP"
OperationTypesMoveLogGroup OperationTypesEnum = "MOVE_LOG_GROUP"
OperationTypesCreateConfiguration OperationTypesEnum = "CREATE_CONFIGURATION"
OperationTypesUpdateConfiguration OperationTypesEnum = "UPDATE_CONFIGURATION"
OperationTypesDeleteConfiguration OperationTypesEnum = "DELETE_CONFIGURATION"
OperationTypesMoveConfiguration OperationTypesEnum = "MOVE_CONFIGURATION"
)
var mappingOperationTypesEnum = map[string]OperationTypesEnum{
"CREATE_LOG": OperationTypesCreateLog,
"UPDATE_LOG": OperationTypesUpdateLog,
"DELETE_LOG": OperationTypesDeleteLog,
"MOVE_LOG": OperationTypesMoveLog,
"CREATE_LOG_GROUP": OperationTypesCreateLogGroup,
"UPDATE_LOG_GROUP": OperationTypesUpdateLogGroup,
"DELETE_LOG_GROUP": OperationTypesDeleteLogGroup,
"MOVE_LOG_GROUP": OperationTypesMoveLogGroup,
"CREATE_CONFIGURATION": OperationTypesCreateConfiguration,
"UPDATE_CONFIGURATION": OperationTypesUpdateConfiguration,
"DELETE_CONFIGURATION": OperationTypesDeleteConfiguration,
"MOVE_CONFIGURATION": OperationTypesMoveConfiguration,
}
var mappingOperationTypesEnumLowerCase = map[string]OperationTypesEnum{
"create_log": OperationTypesCreateLog,
"update_log": OperationTypesUpdateLog,
"delete_log": OperationTypesDeleteLog,
"move_log": OperationTypesMoveLog,
"create_log_group": OperationTypesCreateLogGroup,
"update_log_group": OperationTypesUpdateLogGroup,
"delete_log_group": OperationTypesDeleteLogGroup,
"move_log_group": OperationTypesMoveLogGroup,
"create_configuration": OperationTypesCreateConfiguration,
"update_configuration": OperationTypesUpdateConfiguration,
"delete_configuration": OperationTypesDeleteConfiguration,
"move_configuration": OperationTypesMoveConfiguration,
}
// GetOperationTypesEnumValues Enumerates the set of values for OperationTypesEnum
func GetOperationTypesEnumValues() []OperationTypesEnum {
values := make([]OperationTypesEnum, 0)
for _, v := range mappingOperationTypesEnum {
values = append(values, v)
}
return values
}
// GetOperationTypesEnumStringValues Enumerates the set of values in String for OperationTypesEnum
func GetOperationTypesEnumStringValues() []string {
return []string{
"CREATE_LOG",
"UPDATE_LOG",
"DELETE_LOG",
"MOVE_LOG",
"CREATE_LOG_GROUP",
"UPDATE_LOG_GROUP",
"DELETE_LOG_GROUP",
"MOVE_LOG_GROUP",
"CREATE_CONFIGURATION",
"UPDATE_CONFIGURATION",
"DELETE_CONFIGURATION",
"MOVE_CONFIGURATION",
}
}
// GetMappingOperationTypesEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingOperationTypesEnum(val string) (OperationTypesEnum, bool) {
enum, ok := mappingOperationTypesEnumLowerCase[strings.ToLower(val)]
return enum, ok
}