...
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 Error SeverityTypes = "Error"
74
75 Info SeverityTypes = "Info"
76
77 Warning SeverityTypes = "Warning"
78 )
79
80
81 func PossibleSeverityTypesValues() []SeverityTypes {
82 return []SeverityTypes{Error, Info, Warning}
83 }
84
85
86 type State string
87
88 const (
89
90 StateAccepted State = "Accepted"
91
92 StateCompiling State = "Compiling"
93
94 StateEnded State = "Ended"
95
96 StateNew State = "New"
97
98 StatePaused State = "Paused"
99
100 StateQueued State = "Queued"
101
102 StateRunning State = "Running"
103
104 StateScheduling State = "Scheduling"
105
106 StateStarting State = "Starting"
107
108 StateWaitingForCapacity State = "WaitingForCapacity"
109 )
110
111
112 func PossibleStateValues() []State {
113 return []State{StateAccepted, StateCompiling, StateEnded, StateNew, StatePaused, StateQueued, StateRunning, StateScheduling, StateStarting, StateWaitingForCapacity}
114 }
115
116
117 type Type string
118
119 const (
120
121 TypeHive Type = "Hive"
122
123 TypeJobProperties Type = "JobProperties"
124
125 TypeUSQL Type = "USql"
126 )
127
128
129 func PossibleTypeValues() []Type {
130 return []Type{TypeHive, TypeJobProperties, TypeUSQL}
131 }
132
133
134 type TypeEnum string
135
136 const (
137
138 Hive TypeEnum = "Hive"
139
140 USQL TypeEnum = "USql"
141 )
142
143
144 func PossibleTypeEnumValues() []TypeEnum {
145 return []TypeEnum{Hive, USQL}
146 }
147
View as plain text