forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
230 lines (193 loc) · 7.24 KB
/
enums.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
package batchai
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AllocationState enumerates the values for allocation state.
type AllocationState string
const (
// Resizing ...
Resizing AllocationState = "resizing"
// Steady ...
Steady AllocationState = "steady"
)
// PossibleAllocationStateValues returns an array of possible values for the AllocationState const type.
func PossibleAllocationStateValues() []AllocationState {
return []AllocationState{Resizing, Steady}
}
// CachingType enumerates the values for caching type.
type CachingType string
const (
// None ...
None CachingType = "none"
// Readonly ...
Readonly CachingType = "readonly"
// Readwrite ...
Readwrite CachingType = "readwrite"
)
// PossibleCachingTypeValues returns an array of possible values for the CachingType const type.
func PossibleCachingTypeValues() []CachingType {
return []CachingType{None, Readonly, Readwrite}
}
// DeallocationOption enumerates the values for deallocation option.
type DeallocationOption string
const (
// Requeue ...
Requeue DeallocationOption = "requeue"
// Terminate ...
Terminate DeallocationOption = "terminate"
// Waitforjobcompletion ...
Waitforjobcompletion DeallocationOption = "waitforjobcompletion"
)
// PossibleDeallocationOptionValues returns an array of possible values for the DeallocationOption const type.
func PossibleDeallocationOptionValues() []DeallocationOption {
return []DeallocationOption{Requeue, Terminate, Waitforjobcompletion}
}
// ExecutionState enumerates the values for execution state.
type ExecutionState string
const (
// Failed ...
Failed ExecutionState = "failed"
// Queued ...
Queued ExecutionState = "queued"
// Running ...
Running ExecutionState = "running"
// Succeeded ...
Succeeded ExecutionState = "succeeded"
// Terminating ...
Terminating ExecutionState = "terminating"
)
// PossibleExecutionStateValues returns an array of possible values for the ExecutionState const type.
func PossibleExecutionStateValues() []ExecutionState {
return []ExecutionState{Failed, Queued, Running, Succeeded, Terminating}
}
// FileServerProvisioningState enumerates the values for file server provisioning state.
type FileServerProvisioningState string
const (
// FileServerProvisioningStateCreating ...
FileServerProvisioningStateCreating FileServerProvisioningState = "creating"
// FileServerProvisioningStateDeleting ...
FileServerProvisioningStateDeleting FileServerProvisioningState = "deleting"
// FileServerProvisioningStateFailed ...
FileServerProvisioningStateFailed FileServerProvisioningState = "failed"
// FileServerProvisioningStateSucceeded ...
FileServerProvisioningStateSucceeded FileServerProvisioningState = "succeeded"
// FileServerProvisioningStateUpdating ...
FileServerProvisioningStateUpdating FileServerProvisioningState = "updating"
)
// PossibleFileServerProvisioningStateValues returns an array of possible values for the FileServerProvisioningState const type.
func PossibleFileServerProvisioningStateValues() []FileServerProvisioningState {
return []FileServerProvisioningState{FileServerProvisioningStateCreating, FileServerProvisioningStateDeleting, FileServerProvisioningStateFailed, FileServerProvisioningStateSucceeded, FileServerProvisioningStateUpdating}
}
// FileType enumerates the values for file type.
type FileType string
const (
// FileTypeDirectory ...
FileTypeDirectory FileType = "directory"
// FileTypeFile ...
FileTypeFile FileType = "file"
)
// PossibleFileTypeValues returns an array of possible values for the FileType const type.
func PossibleFileTypeValues() []FileType {
return []FileType{FileTypeDirectory, FileTypeFile}
}
// JobPriority enumerates the values for job priority.
type JobPriority string
const (
// High ...
High JobPriority = "high"
// Low ...
Low JobPriority = "low"
// Normal ...
Normal JobPriority = "normal"
)
// PossibleJobPriorityValues returns an array of possible values for the JobPriority const type.
func PossibleJobPriorityValues() []JobPriority {
return []JobPriority{High, Low, Normal}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// ProvisioningStateCreating ...
ProvisioningStateCreating ProvisioningState = "creating"
// ProvisioningStateDeleting ...
ProvisioningStateDeleting ProvisioningState = "deleting"
// ProvisioningStateFailed ...
ProvisioningStateFailed ProvisioningState = "failed"
// ProvisioningStateSucceeded ...
ProvisioningStateSucceeded ProvisioningState = "succeeded"
)
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateSucceeded}
}
// StorageAccountType enumerates the values for storage account type.
type StorageAccountType string
const (
// PremiumLRS ...
PremiumLRS StorageAccountType = "Premium_LRS"
// StandardLRS ...
StandardLRS StorageAccountType = "Standard_LRS"
)
// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type.
func PossibleStorageAccountTypeValues() []StorageAccountType {
return []StorageAccountType{PremiumLRS, StandardLRS}
}
// ToolType enumerates the values for tool type.
type ToolType string
const (
// Caffe ...
Caffe ToolType = "caffe"
// Caffe2 ...
Caffe2 ToolType = "caffe2"
// Chainer ...
Chainer ToolType = "chainer"
// Cntk ...
Cntk ToolType = "cntk"
// Custom ...
Custom ToolType = "custom"
// Custommpi ...
Custommpi ToolType = "custommpi"
// Horovod ...
Horovod ToolType = "horovod"
// Tensorflow ...
Tensorflow ToolType = "tensorflow"
)
// PossibleToolTypeValues returns an array of possible values for the ToolType const type.
func PossibleToolTypeValues() []ToolType {
return []ToolType{Caffe, Caffe2, Chainer, Cntk, Custom, Custommpi, Horovod, Tensorflow}
}
// UsageUnit enumerates the values for usage unit.
type UsageUnit string
const (
// Count ...
Count UsageUnit = "Count"
)
// PossibleUsageUnitValues returns an array of possible values for the UsageUnit const type.
func PossibleUsageUnitValues() []UsageUnit {
return []UsageUnit{Count}
}
// VMPriority enumerates the values for vm priority.
type VMPriority string
const (
// Dedicated ...
Dedicated VMPriority = "dedicated"
// Lowpriority ...
Lowpriority VMPriority = "lowpriority"
)
// PossibleVMPriorityValues returns an array of possible values for the VMPriority const type.
func PossibleVMPriorityValues() []VMPriority {
return []VMPriority{Dedicated, Lowpriority}
}