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