-
Notifications
You must be signed in to change notification settings - Fork 80
/
job_type.go
117 lines (107 loc) · 4.67 KB
/
job_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
// 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.
// Data Catalog API
//
// Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata.
// For more information, see Data Catalog (https://docs.oracle.com/iaas/data-catalog/home.htm).
//
package datacatalog
import (
"strings"
)
// JobTypeEnum Enum with underlying type: string
type JobTypeEnum string
// Set of constants representing the allowable values for JobTypeEnum
const (
JobTypeHarvest JobTypeEnum = "HARVEST"
JobTypeProfiling JobTypeEnum = "PROFILING"
JobTypeSampling JobTypeEnum = "SAMPLING"
JobTypePreview JobTypeEnum = "PREVIEW"
JobTypeImport JobTypeEnum = "IMPORT"
JobTypeExport JobTypeEnum = "EXPORT"
JobTypeImportGlossary JobTypeEnum = "IMPORT_GLOSSARY"
JobTypeExportGlossary JobTypeEnum = "EXPORT_GLOSSARY"
JobTypeInternal JobTypeEnum = "INTERNAL"
JobTypePurge JobTypeEnum = "PURGE"
JobTypeImmediate JobTypeEnum = "IMMEDIATE"
JobTypeScheduled JobTypeEnum = "SCHEDULED"
JobTypeImmediateExecution JobTypeEnum = "IMMEDIATE_EXECUTION"
JobTypeScheduledExecution JobTypeEnum = "SCHEDULED_EXECUTION"
JobTypeScheduledExecutionInstance JobTypeEnum = "SCHEDULED_EXECUTION_INSTANCE"
JobTypeAsyncDelete JobTypeEnum = "ASYNC_DELETE"
JobTypeImportDataAsset JobTypeEnum = "IMPORT_DATA_ASSET"
)
var mappingJobTypeEnum = map[string]JobTypeEnum{
"HARVEST": JobTypeHarvest,
"PROFILING": JobTypeProfiling,
"SAMPLING": JobTypeSampling,
"PREVIEW": JobTypePreview,
"IMPORT": JobTypeImport,
"EXPORT": JobTypeExport,
"IMPORT_GLOSSARY": JobTypeImportGlossary,
"EXPORT_GLOSSARY": JobTypeExportGlossary,
"INTERNAL": JobTypeInternal,
"PURGE": JobTypePurge,
"IMMEDIATE": JobTypeImmediate,
"SCHEDULED": JobTypeScheduled,
"IMMEDIATE_EXECUTION": JobTypeImmediateExecution,
"SCHEDULED_EXECUTION": JobTypeScheduledExecution,
"SCHEDULED_EXECUTION_INSTANCE": JobTypeScheduledExecutionInstance,
"ASYNC_DELETE": JobTypeAsyncDelete,
"IMPORT_DATA_ASSET": JobTypeImportDataAsset,
}
var mappingJobTypeEnumLowerCase = map[string]JobTypeEnum{
"harvest": JobTypeHarvest,
"profiling": JobTypeProfiling,
"sampling": JobTypeSampling,
"preview": JobTypePreview,
"import": JobTypeImport,
"export": JobTypeExport,
"import_glossary": JobTypeImportGlossary,
"export_glossary": JobTypeExportGlossary,
"internal": JobTypeInternal,
"purge": JobTypePurge,
"immediate": JobTypeImmediate,
"scheduled": JobTypeScheduled,
"immediate_execution": JobTypeImmediateExecution,
"scheduled_execution": JobTypeScheduledExecution,
"scheduled_execution_instance": JobTypeScheduledExecutionInstance,
"async_delete": JobTypeAsyncDelete,
"import_data_asset": JobTypeImportDataAsset,
}
// GetJobTypeEnumValues Enumerates the set of values for JobTypeEnum
func GetJobTypeEnumValues() []JobTypeEnum {
values := make([]JobTypeEnum, 0)
for _, v := range mappingJobTypeEnum {
values = append(values, v)
}
return values
}
// GetJobTypeEnumStringValues Enumerates the set of values in String for JobTypeEnum
func GetJobTypeEnumStringValues() []string {
return []string{
"HARVEST",
"PROFILING",
"SAMPLING",
"PREVIEW",
"IMPORT",
"EXPORT",
"IMPORT_GLOSSARY",
"EXPORT_GLOSSARY",
"INTERNAL",
"PURGE",
"IMMEDIATE",
"SCHEDULED",
"IMMEDIATE_EXECUTION",
"SCHEDULED_EXECUTION",
"SCHEDULED_EXECUTION_INSTANCE",
"ASYNC_DELETE",
"IMPORT_DATA_ASSET",
}
}
// GetMappingJobTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingJobTypeEnum(val string) (JobTypeEnum, bool) {
enum, ok := mappingJobTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}