...
1 package job
2
3
4
5
6
7
8
9
10 type CompileMode string
11
12 const (
13
14 Full CompileMode = "Full"
15
16 Semantic CompileMode = "Semantic"
17
18 SingleBox CompileMode = "SingleBox"
19 )
20
21
22 func PossibleCompileModeValues() []CompileMode {
23 return []CompileMode{Full, Semantic, SingleBox}
24 }
25
26
27 type ResourceType string
28
29 const (
30
31 JobManagerResource ResourceType = "JobManagerResource"
32
33 JobManagerResourceInUserFolder ResourceType = "JobManagerResourceInUserFolder"
34
35 StatisticsResource ResourceType = "StatisticsResource"
36
37 StatisticsResourceInUserFolder ResourceType = "StatisticsResourceInUserFolder"
38
39 VertexResource ResourceType = "VertexResource"
40
41 VertexResourceInUserFolder ResourceType = "VertexResourceInUserFolder"
42 )
43
44
45 func PossibleResourceTypeValues() []ResourceType {
46 return []ResourceType{JobManagerResource, JobManagerResourceInUserFolder, StatisticsResource, StatisticsResourceInUserFolder, VertexResource, VertexResourceInUserFolder}
47 }
48
49
50 type Result string
51
52 const (
53
54 Cancelled Result = "Cancelled"
55
56 Failed Result = "Failed"
57
58 None Result = "None"
59
60 Succeeded Result = "Succeeded"
61 )
62
63
64 func PossibleResultValues() []Result {
65 return []Result{Cancelled, Failed, None, Succeeded}
66 }
67
68
69 type SeverityTypes string
70
71 const (
72
73 Deprecated SeverityTypes = "Deprecated"
74
75 Error SeverityTypes = "Error"
76
77 Info SeverityTypes = "Info"
78
79 SevereWarning SeverityTypes = "SevereWarning"
80
81 UserWarning SeverityTypes = "UserWarning"
82
83 Warning SeverityTypes = "Warning"
84 )
85
86
87 func PossibleSeverityTypesValues() []SeverityTypes {
88 return []SeverityTypes{Deprecated, Error, Info, SevereWarning, UserWarning, Warning}
89 }
90
91
92 type State string
93
94 const (
95
96 StateAccepted State = "Accepted"
97
98 StateCompiling State = "Compiling"
99
100 StateEnded State = "Ended"
101
102 StateNew State = "New"
103
104 StatePaused State = "Paused"
105
106 StateQueued State = "Queued"
107
108 StateRunning State = "Running"
109
110 StateScheduling State = "Scheduling"
111
112 StateStarting State = "Starting"
113
114 StateWaitingForCapacity State = "WaitingForCapacity"
115 )
116
117
118 func PossibleStateValues() []State {
119 return []State{StateAccepted, StateCompiling, StateEnded, StateNew, StatePaused, StateQueued, StateRunning, StateScheduling, StateStarting, StateWaitingForCapacity}
120 }
121
122
123 type Type string
124
125 const (
126
127 TypeHive Type = "Hive"
128
129 TypeJobProperties Type = "JobProperties"
130
131 TypeUSQL Type = "USql"
132 )
133
134
135 func PossibleTypeValues() []Type {
136 return []Type{TypeHive, TypeJobProperties, TypeUSQL}
137 }
138
139
140 type TypeBasicCreateJobProperties string
141
142 const (
143
144 TypeBasicCreateJobPropertiesTypeCreateJobProperties TypeBasicCreateJobProperties = "CreateJobProperties"
145
146 TypeBasicCreateJobPropertiesTypeUSQL TypeBasicCreateJobProperties = "USql"
147 )
148
149
150 func PossibleTypeBasicCreateJobPropertiesValues() []TypeBasicCreateJobProperties {
151 return []TypeBasicCreateJobProperties{TypeBasicCreateJobPropertiesTypeCreateJobProperties, TypeBasicCreateJobPropertiesTypeUSQL}
152 }
153
154
155 type TypeEnum string
156
157 const (
158
159 Hive TypeEnum = "Hive"
160
161 USQL TypeEnum = "USql"
162 )
163
164
165 func PossibleTypeEnumValues() []TypeEnum {
166 return []TypeEnum{Hive, USQL}
167 }
168
View as plain text