1package batchai 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// AllocationState enumerates the values for allocation state. 10type AllocationState string 11 12const ( 13 // Resizing ... 14 Resizing AllocationState = "resizing" 15 // Steady ... 16 Steady AllocationState = "steady" 17) 18 19// PossibleAllocationStateValues returns an array of possible values for the AllocationState const type. 20func PossibleAllocationStateValues() []AllocationState { 21 return []AllocationState{Resizing, Steady} 22} 23 24// CachingType enumerates the values for caching type. 25type CachingType string 26 27const ( 28 // None ... 29 None CachingType = "none" 30 // Readonly ... 31 Readonly CachingType = "readonly" 32 // Readwrite ... 33 Readwrite CachingType = "readwrite" 34) 35 36// PossibleCachingTypeValues returns an array of possible values for the CachingType const type. 37func PossibleCachingTypeValues() []CachingType { 38 return []CachingType{None, Readonly, Readwrite} 39} 40 41// DeallocationOption enumerates the values for deallocation option. 42type DeallocationOption string 43 44const ( 45 // Requeue ... 46 Requeue DeallocationOption = "requeue" 47 // Terminate ... 48 Terminate DeallocationOption = "terminate" 49 // Unknown ... 50 Unknown DeallocationOption = "unknown" 51 // Waitforjobcompletion ... 52 Waitforjobcompletion DeallocationOption = "waitforjobcompletion" 53) 54 55// PossibleDeallocationOptionValues returns an array of possible values for the DeallocationOption const type. 56func PossibleDeallocationOptionValues() []DeallocationOption { 57 return []DeallocationOption{Requeue, Terminate, Unknown, Waitforjobcompletion} 58} 59 60// ExecutionState enumerates the values for execution state. 61type ExecutionState string 62 63const ( 64 // Failed ... 65 Failed ExecutionState = "failed" 66 // Queued ... 67 Queued ExecutionState = "queued" 68 // Running ... 69 Running ExecutionState = "running" 70 // Succeeded ... 71 Succeeded ExecutionState = "succeeded" 72 // Terminating ... 73 Terminating ExecutionState = "terminating" 74) 75 76// PossibleExecutionStateValues returns an array of possible values for the ExecutionState const type. 77func PossibleExecutionStateValues() []ExecutionState { 78 return []ExecutionState{Failed, Queued, Running, Succeeded, Terminating} 79} 80 81// FileServerProvisioningState enumerates the values for file server provisioning state. 82type FileServerProvisioningState string 83 84const ( 85 // FileServerProvisioningStateCreating ... 86 FileServerProvisioningStateCreating FileServerProvisioningState = "creating" 87 // FileServerProvisioningStateDeleting ... 88 FileServerProvisioningStateDeleting FileServerProvisioningState = "deleting" 89 // FileServerProvisioningStateFailed ... 90 FileServerProvisioningStateFailed FileServerProvisioningState = "failed" 91 // FileServerProvisioningStateSucceeded ... 92 FileServerProvisioningStateSucceeded FileServerProvisioningState = "succeeded" 93 // FileServerProvisioningStateUpdating ... 94 FileServerProvisioningStateUpdating FileServerProvisioningState = "updating" 95) 96 97// PossibleFileServerProvisioningStateValues returns an array of possible values for the FileServerProvisioningState const type. 98func PossibleFileServerProvisioningStateValues() []FileServerProvisioningState { 99 return []FileServerProvisioningState{FileServerProvisioningStateCreating, FileServerProvisioningStateDeleting, FileServerProvisioningStateFailed, FileServerProvisioningStateSucceeded, FileServerProvisioningStateUpdating} 100} 101 102// FileServerType enumerates the values for file server type. 103type FileServerType string 104 105const ( 106 // Glusterfs ... 107 Glusterfs FileServerType = "glusterfs" 108 // Nfs ... 109 Nfs FileServerType = "nfs" 110) 111 112// PossibleFileServerTypeValues returns an array of possible values for the FileServerType const type. 113func PossibleFileServerTypeValues() []FileServerType { 114 return []FileServerType{Glusterfs, Nfs} 115} 116 117// OutputType enumerates the values for output type. 118type OutputType string 119 120const ( 121 // Custom ... 122 Custom OutputType = "custom" 123 // Logs ... 124 Logs OutputType = "logs" 125 // Model ... 126 Model OutputType = "model" 127 // Summary ... 128 Summary OutputType = "summary" 129) 130 131// PossibleOutputTypeValues returns an array of possible values for the OutputType const type. 132func PossibleOutputTypeValues() []OutputType { 133 return []OutputType{Custom, Logs, Model, Summary} 134} 135 136// ProvisioningState enumerates the values for provisioning state. 137type ProvisioningState string 138 139const ( 140 // ProvisioningStateCreating ... 141 ProvisioningStateCreating ProvisioningState = "creating" 142 // ProvisioningStateDeleting ... 143 ProvisioningStateDeleting ProvisioningState = "deleting" 144 // ProvisioningStateFailed ... 145 ProvisioningStateFailed ProvisioningState = "failed" 146 // ProvisioningStateSucceeded ... 147 ProvisioningStateSucceeded ProvisioningState = "succeeded" 148) 149 150// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 151func PossibleProvisioningStateValues() []ProvisioningState { 152 return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateSucceeded} 153} 154 155// StorageAccountType enumerates the values for storage account type. 156type StorageAccountType string 157 158const ( 159 // PremiumLRS ... 160 PremiumLRS StorageAccountType = "Premium_LRS" 161 // StandardLRS ... 162 StandardLRS StorageAccountType = "Standard_LRS" 163) 164 165// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type. 166func PossibleStorageAccountTypeValues() []StorageAccountType { 167 return []StorageAccountType{PremiumLRS, StandardLRS} 168} 169 170// ToolType enumerates the values for tool type. 171type ToolType string 172 173const ( 174 // ToolTypeCaffe ... 175 ToolTypeCaffe ToolType = "caffe" 176 // ToolTypeCaffe2 ... 177 ToolTypeCaffe2 ToolType = "caffe2" 178 // ToolTypeChainer ... 179 ToolTypeChainer ToolType = "chainer" 180 // ToolTypeCntk ... 181 ToolTypeCntk ToolType = "cntk" 182 // ToolTypeCustom ... 183 ToolTypeCustom ToolType = "custom" 184 // ToolTypeTensorflow ... 185 ToolTypeTensorflow ToolType = "tensorflow" 186) 187 188// PossibleToolTypeValues returns an array of possible values for the ToolType const type. 189func PossibleToolTypeValues() []ToolType { 190 return []ToolType{ToolTypeCaffe, ToolTypeCaffe2, ToolTypeChainer, ToolTypeCntk, ToolTypeCustom, ToolTypeTensorflow} 191} 192 193// VMPriority enumerates the values for vm priority. 194type VMPriority string 195 196const ( 197 // Dedicated ... 198 Dedicated VMPriority = "dedicated" 199 // Lowpriority ... 200 Lowpriority VMPriority = "lowpriority" 201) 202 203// PossibleVMPriorityValues returns an array of possible values for the VMPriority const type. 204func PossibleVMPriorityValues() []VMPriority { 205 return []VMPriority{Dedicated, Lowpriority} 206} 207