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// AccountKeyType enumerates the values for account key type. 21type AccountKeyType string 22 23const ( 24 // Primary The primary account key. 25 Primary AccountKeyType = "Primary" 26 // Secondary The secondary account key. 27 Secondary AccountKeyType = "Secondary" 28) 29 30// PossibleAccountKeyTypeValues returns an array of possible values for the AccountKeyType const type. 31func PossibleAccountKeyTypeValues() []AccountKeyType { 32 return []AccountKeyType{Primary, Secondary} 33} 34 35// AllocationState enumerates the values for allocation state. 36type AllocationState string 37 38const ( 39 // Resizing The pool is resizing; that is, compute nodes are being added to or removed from the pool. 40 Resizing AllocationState = "Resizing" 41 // Steady The pool is not resizing. There are no changes to the number of nodes in the pool in progress. A 42 // pool enters this state when it is created and when no operations are being performed on the pool to 43 // change the number of nodes. 44 Steady AllocationState = "Steady" 45 // Stopping The pool was resizing, but the user has requested that the resize be stopped, but the stop 46 // request has not yet been completed. 47 Stopping AllocationState = "Stopping" 48) 49 50// PossibleAllocationStateValues returns an array of possible values for the AllocationState const type. 51func PossibleAllocationStateValues() []AllocationState { 52 return []AllocationState{Resizing, Steady, Stopping} 53} 54 55// AutoUserScope enumerates the values for auto user scope. 56type AutoUserScope string 57 58const ( 59 // AutoUserScopePool Specifies that the task runs as the common auto user account which is created on every 60 // node in a pool. 61 AutoUserScopePool AutoUserScope = "Pool" 62 // AutoUserScopeTask Specifies that the service should create a new user for the task. 63 AutoUserScopeTask AutoUserScope = "Task" 64) 65 66// PossibleAutoUserScopeValues returns an array of possible values for the AutoUserScope const type. 67func PossibleAutoUserScopeValues() []AutoUserScope { 68 return []AutoUserScope{AutoUserScopePool, AutoUserScopeTask} 69} 70 71// CachingType enumerates the values for caching type. 72type CachingType string 73 74const ( 75 // None The caching mode for the disk is not enabled. 76 None CachingType = "None" 77 // ReadOnly The caching mode for the disk is read only. 78 ReadOnly CachingType = "ReadOnly" 79 // ReadWrite The caching mode for the disk is read and write. 80 ReadWrite CachingType = "ReadWrite" 81) 82 83// PossibleCachingTypeValues returns an array of possible values for the CachingType const type. 84func PossibleCachingTypeValues() []CachingType { 85 return []CachingType{None, ReadOnly, ReadWrite} 86} 87 88// CertificateFormat enumerates the values for certificate format. 89type CertificateFormat string 90 91const ( 92 // Cer The certificate is a base64-encoded X.509 certificate. 93 Cer CertificateFormat = "Cer" 94 // Pfx The certificate is a PFX (PKCS#12) formatted certificate or certificate chain. 95 Pfx CertificateFormat = "Pfx" 96) 97 98// PossibleCertificateFormatValues returns an array of possible values for the CertificateFormat const type. 99func PossibleCertificateFormatValues() []CertificateFormat { 100 return []CertificateFormat{Cer, Pfx} 101} 102 103// CertificateProvisioningState enumerates the values for certificate provisioning state. 104type CertificateProvisioningState string 105 106const ( 107 // Deleting The user has requested that the certificate be deleted, but the delete operation has not yet 108 // completed. You may not reference the certificate when creating or updating pools. 109 Deleting CertificateProvisioningState = "Deleting" 110 // Failed The user requested that the certificate be deleted, but there are pools that still have 111 // references to the certificate, or it is still installed on one or more compute nodes. (The latter can 112 // occur if the certificate has been removed from the pool, but the node has not yet restarted. Nodes 113 // refresh their certificates only when they restart.) You may use the cancel certificate delete operation 114 // to cancel the delete, or the delete certificate operation to retry the delete. 115 Failed CertificateProvisioningState = "Failed" 116 // Succeeded The certificate is available for use in pools. 117 Succeeded CertificateProvisioningState = "Succeeded" 118) 119 120// PossibleCertificateProvisioningStateValues returns an array of possible values for the CertificateProvisioningState const type. 121func PossibleCertificateProvisioningStateValues() []CertificateProvisioningState { 122 return []CertificateProvisioningState{Deleting, Failed, Succeeded} 123} 124 125// CertificateStoreLocation enumerates the values for certificate store location. 126type CertificateStoreLocation string 127 128const ( 129 // CurrentUser Certificates should be installed to the CurrentUser certificate store. 130 CurrentUser CertificateStoreLocation = "CurrentUser" 131 // LocalMachine Certificates should be installed to the LocalMachine certificate store. 132 LocalMachine CertificateStoreLocation = "LocalMachine" 133) 134 135// PossibleCertificateStoreLocationValues returns an array of possible values for the CertificateStoreLocation const type. 136func PossibleCertificateStoreLocationValues() []CertificateStoreLocation { 137 return []CertificateStoreLocation{CurrentUser, LocalMachine} 138} 139 140// CertificateVisibility enumerates the values for certificate visibility. 141type CertificateVisibility string 142 143const ( 144 // CertificateVisibilityRemoteUser The certificate should be visible to the user accounts under which users 145 // remotely access the node. 146 CertificateVisibilityRemoteUser CertificateVisibility = "RemoteUser" 147 // CertificateVisibilityStartTask The certificate should be visible to the user account under which the 148 // start task is run. 149 CertificateVisibilityStartTask CertificateVisibility = "StartTask" 150 // CertificateVisibilityTask The certificate should be visible to the user accounts under which job tasks 151 // are run. 152 CertificateVisibilityTask CertificateVisibility = "Task" 153) 154 155// PossibleCertificateVisibilityValues returns an array of possible values for the CertificateVisibility const type. 156func PossibleCertificateVisibilityValues() []CertificateVisibility { 157 return []CertificateVisibility{CertificateVisibilityRemoteUser, CertificateVisibilityStartTask, CertificateVisibilityTask} 158} 159 160// ComputeNodeDeallocationOption enumerates the values for compute node deallocation option. 161type ComputeNodeDeallocationOption string 162 163const ( 164 // Requeue Terminate running task processes and requeue the tasks. The tasks will run again when a node is 165 // available. Remove nodes as soon as tasks have been terminated. 166 Requeue ComputeNodeDeallocationOption = "Requeue" 167 // RetainedData Allow currently running tasks to complete, then wait for all task data retention periods to 168 // expire. Schedule no new tasks while waiting. Remove nodes when all task retention periods have expired. 169 RetainedData ComputeNodeDeallocationOption = "RetainedData" 170 // TaskCompletion Allow currently running tasks to complete. Schedule no new tasks while waiting. Remove 171 // nodes when all tasks have completed. 172 TaskCompletion ComputeNodeDeallocationOption = "TaskCompletion" 173 // Terminate Terminate running tasks. The tasks will be completed with failureInfo indicating that they 174 // were terminated, and will not run again. Remove nodes as soon as tasks have been terminated. 175 Terminate ComputeNodeDeallocationOption = "Terminate" 176) 177 178// PossibleComputeNodeDeallocationOptionValues returns an array of possible values for the ComputeNodeDeallocationOption const type. 179func PossibleComputeNodeDeallocationOptionValues() []ComputeNodeDeallocationOption { 180 return []ComputeNodeDeallocationOption{Requeue, RetainedData, TaskCompletion, Terminate} 181} 182 183// ComputeNodeFillType enumerates the values for compute node fill type. 184type ComputeNodeFillType string 185 186const ( 187 // Pack As many tasks as possible (maxTasksPerNode) should be assigned to each node in the pool before any 188 // tasks are assigned to the next node in the pool. 189 Pack ComputeNodeFillType = "Pack" 190 // Spread Tasks should be assigned evenly across all nodes in the pool. 191 Spread ComputeNodeFillType = "Spread" 192) 193 194// PossibleComputeNodeFillTypeValues returns an array of possible values for the ComputeNodeFillType const type. 195func PossibleComputeNodeFillTypeValues() []ComputeNodeFillType { 196 return []ComputeNodeFillType{Pack, Spread} 197} 198 199// ElevationLevel enumerates the values for elevation level. 200type ElevationLevel string 201 202const ( 203 // Admin The user is a user with elevated access and operates with full Administrator permissions. 204 Admin ElevationLevel = "Admin" 205 // NonAdmin The user is a standard user without elevated access. 206 NonAdmin ElevationLevel = "NonAdmin" 207) 208 209// PossibleElevationLevelValues returns an array of possible values for the ElevationLevel const type. 210func PossibleElevationLevelValues() []ElevationLevel { 211 return []ElevationLevel{Admin, NonAdmin} 212} 213 214// InboundEndpointProtocol enumerates the values for inbound endpoint protocol. 215type InboundEndpointProtocol string 216 217const ( 218 // TCP Use TCP for the endpoint. 219 TCP InboundEndpointProtocol = "TCP" 220 // UDP Use UDP for the endpoint. 221 UDP InboundEndpointProtocol = "UDP" 222) 223 224// PossibleInboundEndpointProtocolValues returns an array of possible values for the InboundEndpointProtocol const type. 225func PossibleInboundEndpointProtocolValues() []InboundEndpointProtocol { 226 return []InboundEndpointProtocol{TCP, UDP} 227} 228 229// InterNodeCommunicationState enumerates the values for inter node communication state. 230type InterNodeCommunicationState string 231 232const ( 233 // Disabled Disable network communication between virtual machines. 234 Disabled InterNodeCommunicationState = "Disabled" 235 // Enabled Enable network communication between virtual machines. 236 Enabled InterNodeCommunicationState = "Enabled" 237) 238 239// PossibleInterNodeCommunicationStateValues returns an array of possible values for the InterNodeCommunicationState const type. 240func PossibleInterNodeCommunicationStateValues() []InterNodeCommunicationState { 241 return []InterNodeCommunicationState{Disabled, Enabled} 242} 243 244// LoginMode enumerates the values for login mode. 245type LoginMode string 246 247const ( 248 // Batch The LOGON32_LOGON_BATCH Win32 login mode. The batch login mode is recommended for long running 249 // parallel processes. 250 Batch LoginMode = "Batch" 251 // Interactive The LOGON32_LOGON_INTERACTIVE Win32 login mode. Some applications require having permissions 252 // associated with the interactive login mode. If this is the case for an application used in your task, 253 // then this option is recommended. 254 Interactive LoginMode = "Interactive" 255) 256 257// PossibleLoginModeValues returns an array of possible values for the LoginMode const type. 258func PossibleLoginModeValues() []LoginMode { 259 return []LoginMode{Batch, Interactive} 260} 261 262// NameAvailabilityReason enumerates the values for name availability reason. 263type NameAvailabilityReason string 264 265const ( 266 // AlreadyExists The requested name is already in use. 267 AlreadyExists NameAvailabilityReason = "AlreadyExists" 268 // Invalid The requested name is invalid. 269 Invalid NameAvailabilityReason = "Invalid" 270) 271 272// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type. 273func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason { 274 return []NameAvailabilityReason{AlreadyExists, Invalid} 275} 276 277// NetworkSecurityGroupRuleAccess enumerates the values for network security group rule access. 278type NetworkSecurityGroupRuleAccess string 279 280const ( 281 // Allow Allow access. 282 Allow NetworkSecurityGroupRuleAccess = "Allow" 283 // Deny Deny access. 284 Deny NetworkSecurityGroupRuleAccess = "Deny" 285) 286 287// PossibleNetworkSecurityGroupRuleAccessValues returns an array of possible values for the NetworkSecurityGroupRuleAccess const type. 288func PossibleNetworkSecurityGroupRuleAccessValues() []NetworkSecurityGroupRuleAccess { 289 return []NetworkSecurityGroupRuleAccess{Allow, Deny} 290} 291 292// PackageState enumerates the values for package state. 293type PackageState string 294 295const ( 296 // Active The application package is ready for use. 297 Active PackageState = "Active" 298 // Pending The application package has been created but has not yet been activated. 299 Pending PackageState = "Pending" 300) 301 302// PossiblePackageStateValues returns an array of possible values for the PackageState const type. 303func PossiblePackageStateValues() []PackageState { 304 return []PackageState{Active, Pending} 305} 306 307// PoolAllocationMode enumerates the values for pool allocation mode. 308type PoolAllocationMode string 309 310const ( 311 // BatchService Pools will be allocated in subscriptions owned by the Batch service. 312 BatchService PoolAllocationMode = "BatchService" 313 // UserSubscription Pools will be allocated in a subscription owned by the user. 314 UserSubscription PoolAllocationMode = "UserSubscription" 315) 316 317// PossiblePoolAllocationModeValues returns an array of possible values for the PoolAllocationMode const type. 318func PossiblePoolAllocationModeValues() []PoolAllocationMode { 319 return []PoolAllocationMode{BatchService, UserSubscription} 320} 321 322// PoolProvisioningState enumerates the values for pool provisioning state. 323type PoolProvisioningState string 324 325const ( 326 // PoolProvisioningStateDeleting The user has requested that the pool be deleted, but the delete operation 327 // has not yet completed. 328 PoolProvisioningStateDeleting PoolProvisioningState = "Deleting" 329 // PoolProvisioningStateSucceeded The pool is available to run tasks subject to the availability of compute 330 // nodes. 331 PoolProvisioningStateSucceeded PoolProvisioningState = "Succeeded" 332) 333 334// PossiblePoolProvisioningStateValues returns an array of possible values for the PoolProvisioningState const type. 335func PossiblePoolProvisioningStateValues() []PoolProvisioningState { 336 return []PoolProvisioningState{PoolProvisioningStateDeleting, PoolProvisioningStateSucceeded} 337} 338 339// ProvisioningState enumerates the values for provisioning state. 340type ProvisioningState string 341 342const ( 343 // ProvisioningStateCancelled The last operation for the account is cancelled. 344 ProvisioningStateCancelled ProvisioningState = "Cancelled" 345 // ProvisioningStateCreating The account is being created. 346 ProvisioningStateCreating ProvisioningState = "Creating" 347 // ProvisioningStateDeleting The account is being deleted. 348 ProvisioningStateDeleting ProvisioningState = "Deleting" 349 // ProvisioningStateFailed The last operation for the account is failed. 350 ProvisioningStateFailed ProvisioningState = "Failed" 351 // ProvisioningStateInvalid The account is in an invalid state. 352 ProvisioningStateInvalid ProvisioningState = "Invalid" 353 // ProvisioningStateSucceeded The account has been created and is ready for use. 354 ProvisioningStateSucceeded ProvisioningState = "Succeeded" 355) 356 357// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 358func PossibleProvisioningStateValues() []ProvisioningState { 359 return []ProvisioningState{ProvisioningStateCancelled, ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateInvalid, ProvisioningStateSucceeded} 360} 361 362// StorageAccountType enumerates the values for storage account type. 363type StorageAccountType string 364 365const ( 366 // PremiumLRS The data disk should use premium locally redundant storage. 367 PremiumLRS StorageAccountType = "Premium_LRS" 368 // StandardLRS The data disk should use standard locally redundant storage. 369 StandardLRS StorageAccountType = "Standard_LRS" 370) 371 372// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type. 373func PossibleStorageAccountTypeValues() []StorageAccountType { 374 return []StorageAccountType{PremiumLRS, StandardLRS} 375} 376