1package batch
2
3// Copyright (c) Microsoft and contributors.  All rights reserved.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17// Code generated by Microsoft (R) AutoRest Code Generator.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20// AccessScope enumerates the values for access scope.
21type AccessScope string
22
23const (
24	// Job ...
25	Job AccessScope = "job"
26)
27
28// PossibleAccessScopeValues returns an array of possible values for the AccessScope const type.
29func PossibleAccessScopeValues() []AccessScope {
30	return []AccessScope{Job}
31}
32
33// AllocationState enumerates the values for allocation state.
34type AllocationState string
35
36const (
37	// Resizing ...
38	Resizing AllocationState = "resizing"
39	// Steady ...
40	Steady AllocationState = "steady"
41	// Stopping ...
42	Stopping AllocationState = "stopping"
43)
44
45// PossibleAllocationStateValues returns an array of possible values for the AllocationState const type.
46func PossibleAllocationStateValues() []AllocationState {
47	return []AllocationState{Resizing, Steady, Stopping}
48}
49
50// AutoUserScope enumerates the values for auto user scope.
51type AutoUserScope string
52
53const (
54	// Pool ...
55	Pool AutoUserScope = "pool"
56	// Task ...
57	Task AutoUserScope = "task"
58)
59
60// PossibleAutoUserScopeValues returns an array of possible values for the AutoUserScope const type.
61func PossibleAutoUserScopeValues() []AutoUserScope {
62	return []AutoUserScope{Pool, Task}
63}
64
65// CachingType enumerates the values for caching type.
66type CachingType string
67
68const (
69	// None ...
70	None CachingType = "none"
71	// ReadOnly ...
72	ReadOnly CachingType = "readOnly"
73	// ReadWrite ...
74	ReadWrite CachingType = "readWrite"
75)
76
77// PossibleCachingTypeValues returns an array of possible values for the CachingType const type.
78func PossibleCachingTypeValues() []CachingType {
79	return []CachingType{None, ReadOnly, ReadWrite}
80}
81
82// CertificateFormat enumerates the values for certificate format.
83type CertificateFormat string
84
85const (
86	// Cer ...
87	Cer CertificateFormat = "cer"
88	// Pfx ...
89	Pfx CertificateFormat = "pfx"
90)
91
92// PossibleCertificateFormatValues returns an array of possible values for the CertificateFormat const type.
93func PossibleCertificateFormatValues() []CertificateFormat {
94	return []CertificateFormat{Cer, Pfx}
95}
96
97// CertificateState enumerates the values for certificate state.
98type CertificateState string
99
100const (
101	// Active ...
102	Active CertificateState = "active"
103	// DeleteFailed ...
104	DeleteFailed CertificateState = "deleteFailed"
105	// Deleting ...
106	Deleting CertificateState = "deleting"
107)
108
109// PossibleCertificateStateValues returns an array of possible values for the CertificateState const type.
110func PossibleCertificateStateValues() []CertificateState {
111	return []CertificateState{Active, DeleteFailed, Deleting}
112}
113
114// CertificateStoreLocation enumerates the values for certificate store location.
115type CertificateStoreLocation string
116
117const (
118	// CurrentUser ...
119	CurrentUser CertificateStoreLocation = "currentUser"
120	// LocalMachine ...
121	LocalMachine CertificateStoreLocation = "localMachine"
122)
123
124// PossibleCertificateStoreLocationValues returns an array of possible values for the CertificateStoreLocation const type.
125func PossibleCertificateStoreLocationValues() []CertificateStoreLocation {
126	return []CertificateStoreLocation{CurrentUser, LocalMachine}
127}
128
129// CertificateVisibility enumerates the values for certificate visibility.
130type CertificateVisibility string
131
132const (
133	// CertificateVisibilityRemoteUser ...
134	CertificateVisibilityRemoteUser CertificateVisibility = "remoteUser"
135	// CertificateVisibilityStartTask ...
136	CertificateVisibilityStartTask CertificateVisibility = "startTask"
137	// CertificateVisibilityTask ...
138	CertificateVisibilityTask CertificateVisibility = "task"
139)
140
141// PossibleCertificateVisibilityValues returns an array of possible values for the CertificateVisibility const type.
142func PossibleCertificateVisibilityValues() []CertificateVisibility {
143	return []CertificateVisibility{CertificateVisibilityRemoteUser, CertificateVisibilityStartTask, CertificateVisibilityTask}
144}
145
146// ComputeNodeDeallocationOption enumerates the values for compute node deallocation option.
147type ComputeNodeDeallocationOption string
148
149const (
150	// Requeue ...
151	Requeue ComputeNodeDeallocationOption = "requeue"
152	// RetainedData ...
153	RetainedData ComputeNodeDeallocationOption = "retainedData"
154	// TaskCompletion ...
155	TaskCompletion ComputeNodeDeallocationOption = "taskCompletion"
156	// Terminate ...
157	Terminate ComputeNodeDeallocationOption = "terminate"
158)
159
160// PossibleComputeNodeDeallocationOptionValues returns an array of possible values for the ComputeNodeDeallocationOption const type.
161func PossibleComputeNodeDeallocationOptionValues() []ComputeNodeDeallocationOption {
162	return []ComputeNodeDeallocationOption{Requeue, RetainedData, TaskCompletion, Terminate}
163}
164
165// ComputeNodeFillType enumerates the values for compute node fill type.
166type ComputeNodeFillType string
167
168const (
169	// Pack ...
170	Pack ComputeNodeFillType = "pack"
171	// Spread ...
172	Spread ComputeNodeFillType = "spread"
173)
174
175// PossibleComputeNodeFillTypeValues returns an array of possible values for the ComputeNodeFillType const type.
176func PossibleComputeNodeFillTypeValues() []ComputeNodeFillType {
177	return []ComputeNodeFillType{Pack, Spread}
178}
179
180// ComputeNodeRebootOption enumerates the values for compute node reboot option.
181type ComputeNodeRebootOption string
182
183const (
184	// ComputeNodeRebootOptionRequeue ...
185	ComputeNodeRebootOptionRequeue ComputeNodeRebootOption = "requeue"
186	// ComputeNodeRebootOptionRetainedData ...
187	ComputeNodeRebootOptionRetainedData ComputeNodeRebootOption = "retainedData"
188	// ComputeNodeRebootOptionTaskCompletion ...
189	ComputeNodeRebootOptionTaskCompletion ComputeNodeRebootOption = "taskCompletion"
190	// ComputeNodeRebootOptionTerminate ...
191	ComputeNodeRebootOptionTerminate ComputeNodeRebootOption = "terminate"
192)
193
194// PossibleComputeNodeRebootOptionValues returns an array of possible values for the ComputeNodeRebootOption const type.
195func PossibleComputeNodeRebootOptionValues() []ComputeNodeRebootOption {
196	return []ComputeNodeRebootOption{ComputeNodeRebootOptionRequeue, ComputeNodeRebootOptionRetainedData, ComputeNodeRebootOptionTaskCompletion, ComputeNodeRebootOptionTerminate}
197}
198
199// ComputeNodeReimageOption enumerates the values for compute node reimage option.
200type ComputeNodeReimageOption string
201
202const (
203	// ComputeNodeReimageOptionRequeue ...
204	ComputeNodeReimageOptionRequeue ComputeNodeReimageOption = "requeue"
205	// ComputeNodeReimageOptionRetainedData ...
206	ComputeNodeReimageOptionRetainedData ComputeNodeReimageOption = "retainedData"
207	// ComputeNodeReimageOptionTaskCompletion ...
208	ComputeNodeReimageOptionTaskCompletion ComputeNodeReimageOption = "taskCompletion"
209	// ComputeNodeReimageOptionTerminate ...
210	ComputeNodeReimageOptionTerminate ComputeNodeReimageOption = "terminate"
211)
212
213// PossibleComputeNodeReimageOptionValues returns an array of possible values for the ComputeNodeReimageOption const type.
214func PossibleComputeNodeReimageOptionValues() []ComputeNodeReimageOption {
215	return []ComputeNodeReimageOption{ComputeNodeReimageOptionRequeue, ComputeNodeReimageOptionRetainedData, ComputeNodeReimageOptionTaskCompletion, ComputeNodeReimageOptionTerminate}
216}
217
218// ComputeNodeState enumerates the values for compute node state.
219type ComputeNodeState string
220
221const (
222	// Creating ...
223	Creating ComputeNodeState = "creating"
224	// Idle ...
225	Idle ComputeNodeState = "idle"
226	// LeavingPool ...
227	LeavingPool ComputeNodeState = "leavingPool"
228	// Offline ...
229	Offline ComputeNodeState = "offline"
230	// Preempted ...
231	Preempted ComputeNodeState = "preempted"
232	// Rebooting ...
233	Rebooting ComputeNodeState = "rebooting"
234	// Reimaging ...
235	Reimaging ComputeNodeState = "reimaging"
236	// Running ...
237	Running ComputeNodeState = "running"
238	// Starting ...
239	Starting ComputeNodeState = "starting"
240	// StartTaskFailed ...
241	StartTaskFailed ComputeNodeState = "startTaskFailed"
242	// Unknown ...
243	Unknown ComputeNodeState = "unknown"
244	// Unusable ...
245	Unusable ComputeNodeState = "unusable"
246	// WaitingForStartTask ...
247	WaitingForStartTask ComputeNodeState = "waitingForStartTask"
248)
249
250// PossibleComputeNodeStateValues returns an array of possible values for the ComputeNodeState const type.
251func PossibleComputeNodeStateValues() []ComputeNodeState {
252	return []ComputeNodeState{Creating, Idle, LeavingPool, Offline, Preempted, Rebooting, Reimaging, Running, Starting, StartTaskFailed, Unknown, Unusable, WaitingForStartTask}
253}
254
255// DependencyAction enumerates the values for dependency action.
256type DependencyAction string
257
258const (
259	// Block ...
260	Block DependencyAction = "block"
261	// Satisfy ...
262	Satisfy DependencyAction = "satisfy"
263)
264
265// PossibleDependencyActionValues returns an array of possible values for the DependencyAction const type.
266func PossibleDependencyActionValues() []DependencyAction {
267	return []DependencyAction{Block, Satisfy}
268}
269
270// DisableComputeNodeSchedulingOption enumerates the values for disable compute node scheduling option.
271type DisableComputeNodeSchedulingOption string
272
273const (
274	// DisableComputeNodeSchedulingOptionRequeue ...
275	DisableComputeNodeSchedulingOptionRequeue DisableComputeNodeSchedulingOption = "requeue"
276	// DisableComputeNodeSchedulingOptionTaskCompletion ...
277	DisableComputeNodeSchedulingOptionTaskCompletion DisableComputeNodeSchedulingOption = "taskCompletion"
278	// DisableComputeNodeSchedulingOptionTerminate ...
279	DisableComputeNodeSchedulingOptionTerminate DisableComputeNodeSchedulingOption = "terminate"
280)
281
282// PossibleDisableComputeNodeSchedulingOptionValues returns an array of possible values for the DisableComputeNodeSchedulingOption const type.
283func PossibleDisableComputeNodeSchedulingOptionValues() []DisableComputeNodeSchedulingOption {
284	return []DisableComputeNodeSchedulingOption{DisableComputeNodeSchedulingOptionRequeue, DisableComputeNodeSchedulingOptionTaskCompletion, DisableComputeNodeSchedulingOptionTerminate}
285}
286
287// DisableJobOption enumerates the values for disable job option.
288type DisableJobOption string
289
290const (
291	// DisableJobOptionRequeue ...
292	DisableJobOptionRequeue DisableJobOption = "requeue"
293	// DisableJobOptionTerminate ...
294	DisableJobOptionTerminate DisableJobOption = "terminate"
295	// DisableJobOptionWait ...
296	DisableJobOptionWait DisableJobOption = "wait"
297)
298
299// PossibleDisableJobOptionValues returns an array of possible values for the DisableJobOption const type.
300func PossibleDisableJobOptionValues() []DisableJobOption {
301	return []DisableJobOption{DisableJobOptionRequeue, DisableJobOptionTerminate, DisableJobOptionWait}
302}
303
304// ElevationLevel enumerates the values for elevation level.
305type ElevationLevel string
306
307const (
308	// Admin ...
309	Admin ElevationLevel = "admin"
310	// NonAdmin ...
311	NonAdmin ElevationLevel = "nonAdmin"
312)
313
314// PossibleElevationLevelValues returns an array of possible values for the ElevationLevel const type.
315func PossibleElevationLevelValues() []ElevationLevel {
316	return []ElevationLevel{Admin, NonAdmin}
317}
318
319// ErrorCategory enumerates the values for error category.
320type ErrorCategory string
321
322const (
323	// ServerError ...
324	ServerError ErrorCategory = "serverError"
325	// UserError ...
326	UserError ErrorCategory = "userError"
327)
328
329// PossibleErrorCategoryValues returns an array of possible values for the ErrorCategory const type.
330func PossibleErrorCategoryValues() []ErrorCategory {
331	return []ErrorCategory{ServerError, UserError}
332}
333
334// JobAction enumerates the values for job action.
335type JobAction string
336
337const (
338	// JobActionDisable ...
339	JobActionDisable JobAction = "disable"
340	// JobActionNone ...
341	JobActionNone JobAction = "none"
342	// JobActionTerminate ...
343	JobActionTerminate JobAction = "terminate"
344)
345
346// PossibleJobActionValues returns an array of possible values for the JobAction const type.
347func PossibleJobActionValues() []JobAction {
348	return []JobAction{JobActionDisable, JobActionNone, JobActionTerminate}
349}
350
351// JobPreparationTaskState enumerates the values for job preparation task state.
352type JobPreparationTaskState string
353
354const (
355	// JobPreparationTaskStateCompleted ...
356	JobPreparationTaskStateCompleted JobPreparationTaskState = "completed"
357	// JobPreparationTaskStateRunning ...
358	JobPreparationTaskStateRunning JobPreparationTaskState = "running"
359)
360
361// PossibleJobPreparationTaskStateValues returns an array of possible values for the JobPreparationTaskState const type.
362func PossibleJobPreparationTaskStateValues() []JobPreparationTaskState {
363	return []JobPreparationTaskState{JobPreparationTaskStateCompleted, JobPreparationTaskStateRunning}
364}
365
366// JobReleaseTaskState enumerates the values for job release task state.
367type JobReleaseTaskState string
368
369const (
370	// JobReleaseTaskStateCompleted ...
371	JobReleaseTaskStateCompleted JobReleaseTaskState = "completed"
372	// JobReleaseTaskStateRunning ...
373	JobReleaseTaskStateRunning JobReleaseTaskState = "running"
374)
375
376// PossibleJobReleaseTaskStateValues returns an array of possible values for the JobReleaseTaskState const type.
377func PossibleJobReleaseTaskStateValues() []JobReleaseTaskState {
378	return []JobReleaseTaskState{JobReleaseTaskStateCompleted, JobReleaseTaskStateRunning}
379}
380
381// JobScheduleState enumerates the values for job schedule state.
382type JobScheduleState string
383
384const (
385	// JobScheduleStateActive ...
386	JobScheduleStateActive JobScheduleState = "active"
387	// JobScheduleStateCompleted ...
388	JobScheduleStateCompleted JobScheduleState = "completed"
389	// JobScheduleStateDeleting ...
390	JobScheduleStateDeleting JobScheduleState = "deleting"
391	// JobScheduleStateDisabled ...
392	JobScheduleStateDisabled JobScheduleState = "disabled"
393	// JobScheduleStateTerminating ...
394	JobScheduleStateTerminating JobScheduleState = "terminating"
395)
396
397// PossibleJobScheduleStateValues returns an array of possible values for the JobScheduleState const type.
398func PossibleJobScheduleStateValues() []JobScheduleState {
399	return []JobScheduleState{JobScheduleStateActive, JobScheduleStateCompleted, JobScheduleStateDeleting, JobScheduleStateDisabled, JobScheduleStateTerminating}
400}
401
402// JobState enumerates the values for job state.
403type JobState string
404
405const (
406	// JobStateActive ...
407	JobStateActive JobState = "active"
408	// JobStateCompleted ...
409	JobStateCompleted JobState = "completed"
410	// JobStateDeleting ...
411	JobStateDeleting JobState = "deleting"
412	// JobStateDisabled ...
413	JobStateDisabled JobState = "disabled"
414	// JobStateDisabling ...
415	JobStateDisabling JobState = "disabling"
416	// JobStateEnabling ...
417	JobStateEnabling JobState = "enabling"
418	// JobStateTerminating ...
419	JobStateTerminating JobState = "terminating"
420)
421
422// PossibleJobStateValues returns an array of possible values for the JobState const type.
423func PossibleJobStateValues() []JobState {
424	return []JobState{JobStateActive, JobStateCompleted, JobStateDeleting, JobStateDisabled, JobStateDisabling, JobStateEnabling, JobStateTerminating}
425}
426
427// OnAllTasksComplete enumerates the values for on all tasks complete.
428type OnAllTasksComplete string
429
430const (
431	// NoAction ...
432	NoAction OnAllTasksComplete = "noAction"
433	// TerminateJob ...
434	TerminateJob OnAllTasksComplete = "terminateJob"
435)
436
437// PossibleOnAllTasksCompleteValues returns an array of possible values for the OnAllTasksComplete const type.
438func PossibleOnAllTasksCompleteValues() []OnAllTasksComplete {
439	return []OnAllTasksComplete{NoAction, TerminateJob}
440}
441
442// OnTaskFailure enumerates the values for on task failure.
443type OnTaskFailure string
444
445const (
446	// OnTaskFailureNoAction ...
447	OnTaskFailureNoAction OnTaskFailure = "noAction"
448	// OnTaskFailurePerformExitOptionsJobAction ...
449	OnTaskFailurePerformExitOptionsJobAction OnTaskFailure = "performExitOptionsJobAction"
450)
451
452// PossibleOnTaskFailureValues returns an array of possible values for the OnTaskFailure const type.
453func PossibleOnTaskFailureValues() []OnTaskFailure {
454	return []OnTaskFailure{OnTaskFailureNoAction, OnTaskFailurePerformExitOptionsJobAction}
455}
456
457// OSType enumerates the values for os type.
458type OSType string
459
460const (
461	// Linux ...
462	Linux OSType = "linux"
463	// Windows ...
464	Windows OSType = "windows"
465)
466
467// PossibleOSTypeValues returns an array of possible values for the OSType const type.
468func PossibleOSTypeValues() []OSType {
469	return []OSType{Linux, Windows}
470}
471
472// OutputFileUploadCondition enumerates the values for output file upload condition.
473type OutputFileUploadCondition string
474
475const (
476	// OutputFileUploadConditionTaskCompletion ...
477	OutputFileUploadConditionTaskCompletion OutputFileUploadCondition = "taskCompletion"
478	// OutputFileUploadConditionTaskFailure ...
479	OutputFileUploadConditionTaskFailure OutputFileUploadCondition = "taskFailure"
480	// OutputFileUploadConditionTaskSuccess ...
481	OutputFileUploadConditionTaskSuccess OutputFileUploadCondition = "taskSuccess"
482)
483
484// PossibleOutputFileUploadConditionValues returns an array of possible values for the OutputFileUploadCondition const type.
485func PossibleOutputFileUploadConditionValues() []OutputFileUploadCondition {
486	return []OutputFileUploadCondition{OutputFileUploadConditionTaskCompletion, OutputFileUploadConditionTaskFailure, OutputFileUploadConditionTaskSuccess}
487}
488
489// PoolLifetimeOption enumerates the values for pool lifetime option.
490type PoolLifetimeOption string
491
492const (
493	// PoolLifetimeOptionJob ...
494	PoolLifetimeOptionJob PoolLifetimeOption = "job"
495	// PoolLifetimeOptionJobSchedule ...
496	PoolLifetimeOptionJobSchedule PoolLifetimeOption = "jobSchedule"
497)
498
499// PossiblePoolLifetimeOptionValues returns an array of possible values for the PoolLifetimeOption const type.
500func PossiblePoolLifetimeOptionValues() []PoolLifetimeOption {
501	return []PoolLifetimeOption{PoolLifetimeOptionJob, PoolLifetimeOptionJobSchedule}
502}
503
504// PoolState enumerates the values for pool state.
505type PoolState string
506
507const (
508	// PoolStateActive ...
509	PoolStateActive PoolState = "active"
510	// PoolStateDeleting ...
511	PoolStateDeleting PoolState = "deleting"
512	// PoolStateUpgrading ...
513	PoolStateUpgrading PoolState = "upgrading"
514)
515
516// PossiblePoolStateValues returns an array of possible values for the PoolState const type.
517func PossiblePoolStateValues() []PoolState {
518	return []PoolState{PoolStateActive, PoolStateDeleting, PoolStateUpgrading}
519}
520
521// SchedulingState enumerates the values for scheduling state.
522type SchedulingState string
523
524const (
525	// Disabled ...
526	Disabled SchedulingState = "disabled"
527	// Enabled ...
528	Enabled SchedulingState = "enabled"
529)
530
531// PossibleSchedulingStateValues returns an array of possible values for the SchedulingState const type.
532func PossibleSchedulingStateValues() []SchedulingState {
533	return []SchedulingState{Disabled, Enabled}
534}
535
536// StartTaskState enumerates the values for start task state.
537type StartTaskState string
538
539const (
540	// StartTaskStateCompleted ...
541	StartTaskStateCompleted StartTaskState = "completed"
542	// StartTaskStateRunning ...
543	StartTaskStateRunning StartTaskState = "running"
544)
545
546// PossibleStartTaskStateValues returns an array of possible values for the StartTaskState const type.
547func PossibleStartTaskStateValues() []StartTaskState {
548	return []StartTaskState{StartTaskStateCompleted, StartTaskStateRunning}
549}
550
551// SubtaskState enumerates the values for subtask state.
552type SubtaskState string
553
554const (
555	// SubtaskStateCompleted ...
556	SubtaskStateCompleted SubtaskState = "completed"
557	// SubtaskStatePreparing ...
558	SubtaskStatePreparing SubtaskState = "preparing"
559	// SubtaskStateRunning ...
560	SubtaskStateRunning SubtaskState = "running"
561)
562
563// PossibleSubtaskStateValues returns an array of possible values for the SubtaskState const type.
564func PossibleSubtaskStateValues() []SubtaskState {
565	return []SubtaskState{SubtaskStateCompleted, SubtaskStatePreparing, SubtaskStateRunning}
566}
567
568// TaskAddStatus enumerates the values for task add status.
569type TaskAddStatus string
570
571const (
572	// TaskAddStatusClientError ...
573	TaskAddStatusClientError TaskAddStatus = "clientError"
574	// TaskAddStatusServerError ...
575	TaskAddStatusServerError TaskAddStatus = "serverError"
576	// TaskAddStatusSuccess ...
577	TaskAddStatusSuccess TaskAddStatus = "success"
578)
579
580// PossibleTaskAddStatusValues returns an array of possible values for the TaskAddStatus const type.
581func PossibleTaskAddStatusValues() []TaskAddStatus {
582	return []TaskAddStatus{TaskAddStatusClientError, TaskAddStatusServerError, TaskAddStatusSuccess}
583}
584
585// TaskExecutionResult enumerates the values for task execution result.
586type TaskExecutionResult string
587
588const (
589	// Failure ...
590	Failure TaskExecutionResult = "failure"
591	// Success ...
592	Success TaskExecutionResult = "success"
593)
594
595// PossibleTaskExecutionResultValues returns an array of possible values for the TaskExecutionResult const type.
596func PossibleTaskExecutionResultValues() []TaskExecutionResult {
597	return []TaskExecutionResult{Failure, Success}
598}
599
600// TaskState enumerates the values for task state.
601type TaskState string
602
603const (
604	// TaskStateActive ...
605	TaskStateActive TaskState = "active"
606	// TaskStateCompleted ...
607	TaskStateCompleted TaskState = "completed"
608	// TaskStatePreparing ...
609	TaskStatePreparing TaskState = "preparing"
610	// TaskStateRunning ...
611	TaskStateRunning TaskState = "running"
612)
613
614// PossibleTaskStateValues returns an array of possible values for the TaskState const type.
615func PossibleTaskStateValues() []TaskState {
616	return []TaskState{TaskStateActive, TaskStateCompleted, TaskStatePreparing, TaskStateRunning}
617}
618