-
Notifications
You must be signed in to change notification settings - Fork 80
/
format_entry_type.go
144 lines (134 loc) · 7.09 KB
/
format_entry_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
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
// 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.
// Data Safe API
//
// APIs for using Oracle Data Safe.
//
package datasafe
import (
"strings"
)
// FormatEntryTypeEnum Enum with underlying type: string
type FormatEntryTypeEnum string
// Set of constants representing the allowable values for FormatEntryTypeEnum
const (
FormatEntryTypeDeleteRows FormatEntryTypeEnum = "DELETE_ROWS"
FormatEntryTypeDeterministicSubstitution FormatEntryTypeEnum = "DETERMINISTIC_SUBSTITUTION"
FormatEntryTypeDeterministicEncryption FormatEntryTypeEnum = "DETERMINISTIC_ENCRYPTION"
FormatEntryTypeDeterministicEncryptionDate FormatEntryTypeEnum = "DETERMINISTIC_ENCRYPTION_DATE"
FormatEntryTypeFixedNumber FormatEntryTypeEnum = "FIXED_NUMBER"
FormatEntryTypeFixedString FormatEntryTypeEnum = "FIXED_STRING"
FormatEntryTypeLibraryMaskingFormat FormatEntryTypeEnum = "LIBRARY_MASKING_FORMAT"
FormatEntryTypeNullValue FormatEntryTypeEnum = "NULL_VALUE"
FormatEntryTypePattern FormatEntryTypeEnum = "PATTERN"
FormatEntryTypePostProcessingFunction FormatEntryTypeEnum = "POST_PROCESSING_FUNCTION"
FormatEntryTypePreserveOriginalData FormatEntryTypeEnum = "PRESERVE_ORIGINAL_DATA"
FormatEntryTypeRandomDate FormatEntryTypeEnum = "RANDOM_DATE"
FormatEntryTypeRandomDecimalNumber FormatEntryTypeEnum = "RANDOM_DECIMAL_NUMBER"
FormatEntryTypeRandomDigits FormatEntryTypeEnum = "RANDOM_DIGITS"
FormatEntryTypeRandomList FormatEntryTypeEnum = "RANDOM_LIST"
FormatEntryTypeRandomNumber FormatEntryTypeEnum = "RANDOM_NUMBER"
FormatEntryTypeRandomString FormatEntryTypeEnum = "RANDOM_STRING"
FormatEntryTypeRandomSubstitution FormatEntryTypeEnum = "RANDOM_SUBSTITUTION"
FormatEntryTypeRegularExpression FormatEntryTypeEnum = "REGULAR_EXPRESSION"
FormatEntryTypeShuffle FormatEntryTypeEnum = "SHUFFLE"
FormatEntryTypeSqlExpression FormatEntryTypeEnum = "SQL_EXPRESSION"
FormatEntryTypeSubstring FormatEntryTypeEnum = "SUBSTRING"
FormatEntryTypeTruncateTable FormatEntryTypeEnum = "TRUNCATE_TABLE"
FormatEntryTypeUserDefinedFunction FormatEntryTypeEnum = "USER_DEFINED_FUNCTION"
)
var mappingFormatEntryTypeEnum = map[string]FormatEntryTypeEnum{
"DELETE_ROWS": FormatEntryTypeDeleteRows,
"DETERMINISTIC_SUBSTITUTION": FormatEntryTypeDeterministicSubstitution,
"DETERMINISTIC_ENCRYPTION": FormatEntryTypeDeterministicEncryption,
"DETERMINISTIC_ENCRYPTION_DATE": FormatEntryTypeDeterministicEncryptionDate,
"FIXED_NUMBER": FormatEntryTypeFixedNumber,
"FIXED_STRING": FormatEntryTypeFixedString,
"LIBRARY_MASKING_FORMAT": FormatEntryTypeLibraryMaskingFormat,
"NULL_VALUE": FormatEntryTypeNullValue,
"PATTERN": FormatEntryTypePattern,
"POST_PROCESSING_FUNCTION": FormatEntryTypePostProcessingFunction,
"PRESERVE_ORIGINAL_DATA": FormatEntryTypePreserveOriginalData,
"RANDOM_DATE": FormatEntryTypeRandomDate,
"RANDOM_DECIMAL_NUMBER": FormatEntryTypeRandomDecimalNumber,
"RANDOM_DIGITS": FormatEntryTypeRandomDigits,
"RANDOM_LIST": FormatEntryTypeRandomList,
"RANDOM_NUMBER": FormatEntryTypeRandomNumber,
"RANDOM_STRING": FormatEntryTypeRandomString,
"RANDOM_SUBSTITUTION": FormatEntryTypeRandomSubstitution,
"REGULAR_EXPRESSION": FormatEntryTypeRegularExpression,
"SHUFFLE": FormatEntryTypeShuffle,
"SQL_EXPRESSION": FormatEntryTypeSqlExpression,
"SUBSTRING": FormatEntryTypeSubstring,
"TRUNCATE_TABLE": FormatEntryTypeTruncateTable,
"USER_DEFINED_FUNCTION": FormatEntryTypeUserDefinedFunction,
}
var mappingFormatEntryTypeEnumLowerCase = map[string]FormatEntryTypeEnum{
"delete_rows": FormatEntryTypeDeleteRows,
"deterministic_substitution": FormatEntryTypeDeterministicSubstitution,
"deterministic_encryption": FormatEntryTypeDeterministicEncryption,
"deterministic_encryption_date": FormatEntryTypeDeterministicEncryptionDate,
"fixed_number": FormatEntryTypeFixedNumber,
"fixed_string": FormatEntryTypeFixedString,
"library_masking_format": FormatEntryTypeLibraryMaskingFormat,
"null_value": FormatEntryTypeNullValue,
"pattern": FormatEntryTypePattern,
"post_processing_function": FormatEntryTypePostProcessingFunction,
"preserve_original_data": FormatEntryTypePreserveOriginalData,
"random_date": FormatEntryTypeRandomDate,
"random_decimal_number": FormatEntryTypeRandomDecimalNumber,
"random_digits": FormatEntryTypeRandomDigits,
"random_list": FormatEntryTypeRandomList,
"random_number": FormatEntryTypeRandomNumber,
"random_string": FormatEntryTypeRandomString,
"random_substitution": FormatEntryTypeRandomSubstitution,
"regular_expression": FormatEntryTypeRegularExpression,
"shuffle": FormatEntryTypeShuffle,
"sql_expression": FormatEntryTypeSqlExpression,
"substring": FormatEntryTypeSubstring,
"truncate_table": FormatEntryTypeTruncateTable,
"user_defined_function": FormatEntryTypeUserDefinedFunction,
}
// GetFormatEntryTypeEnumValues Enumerates the set of values for FormatEntryTypeEnum
func GetFormatEntryTypeEnumValues() []FormatEntryTypeEnum {
values := make([]FormatEntryTypeEnum, 0)
for _, v := range mappingFormatEntryTypeEnum {
values = append(values, v)
}
return values
}
// GetFormatEntryTypeEnumStringValues Enumerates the set of values in String for FormatEntryTypeEnum
func GetFormatEntryTypeEnumStringValues() []string {
return []string{
"DELETE_ROWS",
"DETERMINISTIC_SUBSTITUTION",
"DETERMINISTIC_ENCRYPTION",
"DETERMINISTIC_ENCRYPTION_DATE",
"FIXED_NUMBER",
"FIXED_STRING",
"LIBRARY_MASKING_FORMAT",
"NULL_VALUE",
"PATTERN",
"POST_PROCESSING_FUNCTION",
"PRESERVE_ORIGINAL_DATA",
"RANDOM_DATE",
"RANDOM_DECIMAL_NUMBER",
"RANDOM_DIGITS",
"RANDOM_LIST",
"RANDOM_NUMBER",
"RANDOM_STRING",
"RANDOM_SUBSTITUTION",
"REGULAR_EXPRESSION",
"SHUFFLE",
"SQL_EXPRESSION",
"SUBSTRING",
"TRUNCATE_TABLE",
"USER_DEFINED_FUNCTION",
}
}
// GetMappingFormatEntryTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingFormatEntryTypeEnum(val string) (FormatEntryTypeEnum, bool) {
enum, ok := mappingFormatEntryTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}