/
work_request_operation_types.go
88 lines (78 loc) · 4.69 KB
/
work_request_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
// Copyright (c) 2016, 2018, 2024, 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.
// Web Application Acceleration and Security Services API
//
// OCI Web Application Acceleration and Security Services
//
package waas
import (
"strings"
)
// WorkRequestOperationTypesEnum Enum with underlying type: string
type WorkRequestOperationTypesEnum string
// Set of constants representing the allowable values for WorkRequestOperationTypesEnum
const (
WorkRequestOperationTypesCreateWaasPolicy WorkRequestOperationTypesEnum = "CREATE_WAAS_POLICY"
WorkRequestOperationTypesUpdateWaasPolicy WorkRequestOperationTypesEnum = "UPDATE_WAAS_POLICY"
WorkRequestOperationTypesDeleteWaasPolicy WorkRequestOperationTypesEnum = "DELETE_WAAS_POLICY"
WorkRequestOperationTypesCreateHttpRedirect WorkRequestOperationTypesEnum = "CREATE_HTTP_REDIRECT"
WorkRequestOperationTypesUpdateHttpRedirect WorkRequestOperationTypesEnum = "UPDATE_HTTP_REDIRECT"
WorkRequestOperationTypesDeleteHttpRedirect WorkRequestOperationTypesEnum = "DELETE_HTTP_REDIRECT"
WorkRequestOperationTypesPurgeWaasPolicyCache WorkRequestOperationTypesEnum = "PURGE_WAAS_POLICY_CACHE"
WorkRequestOperationTypesCreateCustomProtectionRule WorkRequestOperationTypesEnum = "CREATE_CUSTOM_PROTECTION_RULE"
WorkRequestOperationTypesUpdateCustomProtectionRule WorkRequestOperationTypesEnum = "UPDATE_CUSTOM_PROTECTION_RULE"
WorkRequestOperationTypesDeleteCustomProtectionRule WorkRequestOperationTypesEnum = "DELETE_CUSTOM_PROTECTION_RULE"
)
var mappingWorkRequestOperationTypesEnum = map[string]WorkRequestOperationTypesEnum{
"CREATE_WAAS_POLICY": WorkRequestOperationTypesCreateWaasPolicy,
"UPDATE_WAAS_POLICY": WorkRequestOperationTypesUpdateWaasPolicy,
"DELETE_WAAS_POLICY": WorkRequestOperationTypesDeleteWaasPolicy,
"CREATE_HTTP_REDIRECT": WorkRequestOperationTypesCreateHttpRedirect,
"UPDATE_HTTP_REDIRECT": WorkRequestOperationTypesUpdateHttpRedirect,
"DELETE_HTTP_REDIRECT": WorkRequestOperationTypesDeleteHttpRedirect,
"PURGE_WAAS_POLICY_CACHE": WorkRequestOperationTypesPurgeWaasPolicyCache,
"CREATE_CUSTOM_PROTECTION_RULE": WorkRequestOperationTypesCreateCustomProtectionRule,
"UPDATE_CUSTOM_PROTECTION_RULE": WorkRequestOperationTypesUpdateCustomProtectionRule,
"DELETE_CUSTOM_PROTECTION_RULE": WorkRequestOperationTypesDeleteCustomProtectionRule,
}
var mappingWorkRequestOperationTypesEnumLowerCase = map[string]WorkRequestOperationTypesEnum{
"create_waas_policy": WorkRequestOperationTypesCreateWaasPolicy,
"update_waas_policy": WorkRequestOperationTypesUpdateWaasPolicy,
"delete_waas_policy": WorkRequestOperationTypesDeleteWaasPolicy,
"create_http_redirect": WorkRequestOperationTypesCreateHttpRedirect,
"update_http_redirect": WorkRequestOperationTypesUpdateHttpRedirect,
"delete_http_redirect": WorkRequestOperationTypesDeleteHttpRedirect,
"purge_waas_policy_cache": WorkRequestOperationTypesPurgeWaasPolicyCache,
"create_custom_protection_rule": WorkRequestOperationTypesCreateCustomProtectionRule,
"update_custom_protection_rule": WorkRequestOperationTypesUpdateCustomProtectionRule,
"delete_custom_protection_rule": WorkRequestOperationTypesDeleteCustomProtectionRule,
}
// GetWorkRequestOperationTypesEnumValues Enumerates the set of values for WorkRequestOperationTypesEnum
func GetWorkRequestOperationTypesEnumValues() []WorkRequestOperationTypesEnum {
values := make([]WorkRequestOperationTypesEnum, 0)
for _, v := range mappingWorkRequestOperationTypesEnum {
values = append(values, v)
}
return values
}
// GetWorkRequestOperationTypesEnumStringValues Enumerates the set of values in String for WorkRequestOperationTypesEnum
func GetWorkRequestOperationTypesEnumStringValues() []string {
return []string{
"CREATE_WAAS_POLICY",
"UPDATE_WAAS_POLICY",
"DELETE_WAAS_POLICY",
"CREATE_HTTP_REDIRECT",
"UPDATE_HTTP_REDIRECT",
"DELETE_HTTP_REDIRECT",
"PURGE_WAAS_POLICY_CACHE",
"CREATE_CUSTOM_PROTECTION_RULE",
"UPDATE_CUSTOM_PROTECTION_RULE",
"DELETE_CUSTOM_PROTECTION_RULE",
}
}
// GetMappingWorkRequestOperationTypesEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingWorkRequestOperationTypesEnum(val string) (WorkRequestOperationTypesEnum, bool) {
enum, ok := mappingWorkRequestOperationTypesEnumLowerCase[strings.ToLower(val)]
return enum, ok
}