...
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 StateFinalizing State = "Finalizing"
103
104 StateNew State = "New"
105
106 StatePaused State = "Paused"
107
108 StateQueued State = "Queued"
109
110 StateRunning State = "Running"
111
112 StateScheduling State = "Scheduling"
113
114 StateStarting State = "Starting"
115
116 StateWaitingForCapacity State = "WaitingForCapacity"
117
118 StateYielded State = "Yielded"
119 )
120
121
122 func PossibleStateValues() []State {
123 return []State{StateAccepted, StateCompiling, StateEnded, StateFinalizing, StateNew, StatePaused, StateQueued, StateRunning, StateScheduling, StateStarting, StateWaitingForCapacity, StateYielded}
124 }
125
126
127 type Type string
128
129 const (
130
131 TypeHive Type = "Hive"
132
133 TypeJobProperties Type = "JobProperties"
134
135 TypeScope Type = "Scope"
136
137 TypeUSQL Type = "USql"
138 )
139
140
141 func PossibleTypeValues() []Type {
142 return []Type{TypeHive, TypeJobProperties, TypeScope, TypeUSQL}
143 }
144
145
146 type TypeBasicCreateJobProperties string
147
148 const (
149
150 TypeBasicCreateJobPropertiesTypeCreateJobProperties TypeBasicCreateJobProperties = "CreateJobProperties"
151
152 TypeBasicCreateJobPropertiesTypeScope TypeBasicCreateJobProperties = "Scope"
153
154 TypeBasicCreateJobPropertiesTypeUSQL TypeBasicCreateJobProperties = "USql"
155 )
156
157
158 func PossibleTypeBasicCreateJobPropertiesValues() []TypeBasicCreateJobProperties {
159 return []TypeBasicCreateJobProperties{TypeBasicCreateJobPropertiesTypeCreateJobProperties, TypeBasicCreateJobPropertiesTypeScope, TypeBasicCreateJobPropertiesTypeUSQL}
160 }
161
162
163 type TypeEnum string
164
165 const (
166
167 Hive TypeEnum = "Hive"
168
169 Scope TypeEnum = "Scope"
170
171 USQL TypeEnum = "USql"
172 )
173
174
175 func PossibleTypeEnumValues() []TypeEnum {
176 return []TypeEnum{Hive, Scope, USQL}
177 }
178
View as plain text