...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/2016-03-20-preview/job/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/2016-03-20-preview/job

     1  package job
     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  // CompileMode enumerates the values for compile mode.
    10  type CompileMode string
    11  
    12  const (
    13  	// Full ...
    14  	Full CompileMode = "Full"
    15  	// Semantic ...
    16  	Semantic CompileMode = "Semantic"
    17  	// SingleBox ...
    18  	SingleBox CompileMode = "SingleBox"
    19  )
    20  
    21  // PossibleCompileModeValues returns an array of possible values for the CompileMode const type.
    22  func PossibleCompileModeValues() []CompileMode {
    23  	return []CompileMode{Full, Semantic, SingleBox}
    24  }
    25  
    26  // ResourceType enumerates the values for resource type.
    27  type ResourceType string
    28  
    29  const (
    30  	// JobManagerResource ...
    31  	JobManagerResource ResourceType = "JobManagerResource"
    32  	// JobManagerResourceInUserFolder ...
    33  	JobManagerResourceInUserFolder ResourceType = "JobManagerResourceInUserFolder"
    34  	// StatisticsResource ...
    35  	StatisticsResource ResourceType = "StatisticsResource"
    36  	// StatisticsResourceInUserFolder ...
    37  	StatisticsResourceInUserFolder ResourceType = "StatisticsResourceInUserFolder"
    38  	// VertexResource ...
    39  	VertexResource ResourceType = "VertexResource"
    40  	// VertexResourceInUserFolder ...
    41  	VertexResourceInUserFolder ResourceType = "VertexResourceInUserFolder"
    42  )
    43  
    44  // PossibleResourceTypeValues returns an array of possible values for the ResourceType const type.
    45  func PossibleResourceTypeValues() []ResourceType {
    46  	return []ResourceType{JobManagerResource, JobManagerResourceInUserFolder, StatisticsResource, StatisticsResourceInUserFolder, VertexResource, VertexResourceInUserFolder}
    47  }
    48  
    49  // Result enumerates the values for result.
    50  type Result string
    51  
    52  const (
    53  	// Cancelled ...
    54  	Cancelled Result = "Cancelled"
    55  	// Failed ...
    56  	Failed Result = "Failed"
    57  	// None ...
    58  	None Result = "None"
    59  	// Succeeded ...
    60  	Succeeded Result = "Succeeded"
    61  )
    62  
    63  // PossibleResultValues returns an array of possible values for the Result const type.
    64  func PossibleResultValues() []Result {
    65  	return []Result{Cancelled, Failed, None, Succeeded}
    66  }
    67  
    68  // SeverityTypes enumerates the values for severity types.
    69  type SeverityTypes string
    70  
    71  const (
    72  	// Error ...
    73  	Error SeverityTypes = "Error"
    74  	// Info ...
    75  	Info SeverityTypes = "Info"
    76  	// Warning ...
    77  	Warning SeverityTypes = "Warning"
    78  )
    79  
    80  // PossibleSeverityTypesValues returns an array of possible values for the SeverityTypes const type.
    81  func PossibleSeverityTypesValues() []SeverityTypes {
    82  	return []SeverityTypes{Error, Info, Warning}
    83  }
    84  
    85  // State enumerates the values for state.
    86  type State string
    87  
    88  const (
    89  	// StateAccepted ...
    90  	StateAccepted State = "Accepted"
    91  	// StateCompiling ...
    92  	StateCompiling State = "Compiling"
    93  	// StateEnded ...
    94  	StateEnded State = "Ended"
    95  	// StateNew ...
    96  	StateNew State = "New"
    97  	// StatePaused ...
    98  	StatePaused State = "Paused"
    99  	// StateQueued ...
   100  	StateQueued State = "Queued"
   101  	// StateRunning ...
   102  	StateRunning State = "Running"
   103  	// StateScheduling ...
   104  	StateScheduling State = "Scheduling"
   105  	// StateStarting ...
   106  	StateStarting State = "Starting"
   107  	// StateWaitingForCapacity ...
   108  	StateWaitingForCapacity State = "WaitingForCapacity"
   109  )
   110  
   111  // PossibleStateValues returns an array of possible values for the State const type.
   112  func PossibleStateValues() []State {
   113  	return []State{StateAccepted, StateCompiling, StateEnded, StateNew, StatePaused, StateQueued, StateRunning, StateScheduling, StateStarting, StateWaitingForCapacity}
   114  }
   115  
   116  // Type enumerates the values for type.
   117  type Type string
   118  
   119  const (
   120  	// TypeHive ...
   121  	TypeHive Type = "Hive"
   122  	// TypeJobProperties ...
   123  	TypeJobProperties Type = "JobProperties"
   124  	// TypeUSQL ...
   125  	TypeUSQL Type = "USql"
   126  )
   127  
   128  // PossibleTypeValues returns an array of possible values for the Type const type.
   129  func PossibleTypeValues() []Type {
   130  	return []Type{TypeHive, TypeJobProperties, TypeUSQL}
   131  }
   132  
   133  // TypeEnum enumerates the values for type enum.
   134  type TypeEnum string
   135  
   136  const (
   137  	// Hive ...
   138  	Hive TypeEnum = "Hive"
   139  	// USQL ...
   140  	USQL TypeEnum = "USql"
   141  )
   142  
   143  // PossibleTypeEnumValues returns an array of possible values for the TypeEnum const type.
   144  func PossibleTypeEnumValues() []TypeEnum {
   145  	return []TypeEnum{Hive, USQL}
   146  }
   147  

View as plain text