1package spark 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// BatchJobResultType enumerates the values for batch job result type. 10type BatchJobResultType string 11 12const ( 13 // Cancelled ... 14 Cancelled BatchJobResultType = "Cancelled" 15 // Failed ... 16 Failed BatchJobResultType = "Failed" 17 // Succeeded ... 18 Succeeded BatchJobResultType = "Succeeded" 19 // Uncertain ... 20 Uncertain BatchJobResultType = "Uncertain" 21) 22 23// PossibleBatchJobResultTypeValues returns an array of possible values for the BatchJobResultType const type. 24func PossibleBatchJobResultTypeValues() []BatchJobResultType { 25 return []BatchJobResultType{Cancelled, Failed, Succeeded, Uncertain} 26} 27 28// ErrorSource enumerates the values for error source. 29type ErrorSource string 30 31const ( 32 // Dependency ... 33 Dependency ErrorSource = "Dependency" 34 // System ... 35 System ErrorSource = "System" 36 // Unknown ... 37 Unknown ErrorSource = "Unknown" 38 // User ... 39 User ErrorSource = "User" 40) 41 42// PossibleErrorSourceValues returns an array of possible values for the ErrorSource const type. 43func PossibleErrorSourceValues() []ErrorSource { 44 return []ErrorSource{Dependency, System, Unknown, User} 45} 46 47// JobType enumerates the values for job type. 48type JobType string 49 50const ( 51 // SparkBatch ... 52 SparkBatch JobType = "SparkBatch" 53 // SparkSession ... 54 SparkSession JobType = "SparkSession" 55) 56 57// PossibleJobTypeValues returns an array of possible values for the JobType const type. 58func PossibleJobTypeValues() []JobType { 59 return []JobType{SparkBatch, SparkSession} 60} 61 62// PluginCurrentState enumerates the values for plugin current state. 63type PluginCurrentState string 64 65const ( 66 // Cleanup ... 67 Cleanup PluginCurrentState = "Cleanup" 68 // Ended ... 69 Ended PluginCurrentState = "Ended" 70 // Monitoring ... 71 Monitoring PluginCurrentState = "Monitoring" 72 // Preparation ... 73 Preparation PluginCurrentState = "Preparation" 74 // Queued ... 75 Queued PluginCurrentState = "Queued" 76 // ResourceAcquisition ... 77 ResourceAcquisition PluginCurrentState = "ResourceAcquisition" 78 // Submission ... 79 Submission PluginCurrentState = "Submission" 80) 81 82// PossiblePluginCurrentStateValues returns an array of possible values for the PluginCurrentState const type. 83func PossiblePluginCurrentStateValues() []PluginCurrentState { 84 return []PluginCurrentState{Cleanup, Ended, Monitoring, Preparation, Queued, ResourceAcquisition, Submission} 85} 86 87// SchedulerCurrentState enumerates the values for scheduler current state. 88type SchedulerCurrentState string 89 90const ( 91 // SchedulerCurrentStateEnded ... 92 SchedulerCurrentStateEnded SchedulerCurrentState = "Ended" 93 // SchedulerCurrentStateQueued ... 94 SchedulerCurrentStateQueued SchedulerCurrentState = "Queued" 95 // SchedulerCurrentStateScheduled ... 96 SchedulerCurrentStateScheduled SchedulerCurrentState = "Scheduled" 97) 98 99// PossibleSchedulerCurrentStateValues returns an array of possible values for the SchedulerCurrentState const type. 100func PossibleSchedulerCurrentStateValues() []SchedulerCurrentState { 101 return []SchedulerCurrentState{SchedulerCurrentStateEnded, SchedulerCurrentStateQueued, SchedulerCurrentStateScheduled} 102} 103 104// SessionResultType enumerates the values for session result type. 105type SessionResultType string 106 107const ( 108 // SessionResultTypeCancelled ... 109 SessionResultTypeCancelled SessionResultType = "Cancelled" 110 // SessionResultTypeFailed ... 111 SessionResultTypeFailed SessionResultType = "Failed" 112 // SessionResultTypeSucceeded ... 113 SessionResultTypeSucceeded SessionResultType = "Succeeded" 114 // SessionResultTypeUncertain ... 115 SessionResultTypeUncertain SessionResultType = "Uncertain" 116) 117 118// PossibleSessionResultTypeValues returns an array of possible values for the SessionResultType const type. 119func PossibleSessionResultTypeValues() []SessionResultType { 120 return []SessionResultType{SessionResultTypeCancelled, SessionResultTypeFailed, SessionResultTypeSucceeded, SessionResultTypeUncertain} 121} 122 123// StatementLanguageType enumerates the values for statement language type. 124type StatementLanguageType string 125 126const ( 127 // Dotnetspark ... 128 Dotnetspark StatementLanguageType = "dotnetspark" 129 // Pyspark ... 130 Pyspark StatementLanguageType = "pyspark" 131 // Spark ... 132 Spark StatementLanguageType = "spark" 133 // SQL ... 134 SQL StatementLanguageType = "sql" 135) 136 137// PossibleStatementLanguageTypeValues returns an array of possible values for the StatementLanguageType const type. 138func PossibleStatementLanguageTypeValues() []StatementLanguageType { 139 return []StatementLanguageType{Dotnetspark, Pyspark, Spark, SQL} 140} 141