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