...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/2017-09-01-preview/job/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/2017-09-01-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  	// Deprecated ...
    73  	Deprecated SeverityTypes = "Deprecated"
    74  	// Error ...
    75  	Error SeverityTypes = "Error"
    76  	// Info ...
    77  	Info SeverityTypes = "Info"
    78  	// SevereWarning ...
    79  	SevereWarning SeverityTypes = "SevereWarning"
    80  	// UserWarning ...
    81  	UserWarning SeverityTypes = "UserWarning"
    82  	// Warning ...
    83  	Warning SeverityTypes = "Warning"
    84  )
    85  
    86  // PossibleSeverityTypesValues returns an array of possible values for the SeverityTypes const type.
    87  func PossibleSeverityTypesValues() []SeverityTypes {
    88  	return []SeverityTypes{Deprecated, Error, Info, SevereWarning, UserWarning, Warning}
    89  }
    90  
    91  // State enumerates the values for state.
    92  type State string
    93  
    94  const (
    95  	// StateAccepted ...
    96  	StateAccepted State = "Accepted"
    97  	// StateCompiling ...
    98  	StateCompiling State = "Compiling"
    99  	// StateEnded ...
   100  	StateEnded State = "Ended"
   101  	// StateFinalizing ...
   102  	StateFinalizing State = "Finalizing"
   103  	// StateNew ...
   104  	StateNew State = "New"
   105  	// StatePaused ...
   106  	StatePaused State = "Paused"
   107  	// StateQueued ...
   108  	StateQueued State = "Queued"
   109  	// StateRunning ...
   110  	StateRunning State = "Running"
   111  	// StateScheduling ...
   112  	StateScheduling State = "Scheduling"
   113  	// StateStarting ...
   114  	StateStarting State = "Starting"
   115  	// StateWaitingForCapacity ...
   116  	StateWaitingForCapacity State = "WaitingForCapacity"
   117  	// StateYielded ...
   118  	StateYielded State = "Yielded"
   119  )
   120  
   121  // PossibleStateValues returns an array of possible values for the State const type.
   122  func PossibleStateValues() []State {
   123  	return []State{StateAccepted, StateCompiling, StateEnded, StateFinalizing, StateNew, StatePaused, StateQueued, StateRunning, StateScheduling, StateStarting, StateWaitingForCapacity, StateYielded}
   124  }
   125  
   126  // Type enumerates the values for type.
   127  type Type string
   128  
   129  const (
   130  	// TypeHive ...
   131  	TypeHive Type = "Hive"
   132  	// TypeJobProperties ...
   133  	TypeJobProperties Type = "JobProperties"
   134  	// TypeScope ...
   135  	TypeScope Type = "Scope"
   136  	// TypeUSQL ...
   137  	TypeUSQL Type = "USql"
   138  )
   139  
   140  // PossibleTypeValues returns an array of possible values for the Type const type.
   141  func PossibleTypeValues() []Type {
   142  	return []Type{TypeHive, TypeJobProperties, TypeScope, TypeUSQL}
   143  }
   144  
   145  // TypeBasicCreateJobProperties enumerates the values for type basic create job properties.
   146  type TypeBasicCreateJobProperties string
   147  
   148  const (
   149  	// TypeBasicCreateJobPropertiesTypeCreateJobProperties ...
   150  	TypeBasicCreateJobPropertiesTypeCreateJobProperties TypeBasicCreateJobProperties = "CreateJobProperties"
   151  	// TypeBasicCreateJobPropertiesTypeScope ...
   152  	TypeBasicCreateJobPropertiesTypeScope TypeBasicCreateJobProperties = "Scope"
   153  	// TypeBasicCreateJobPropertiesTypeUSQL ...
   154  	TypeBasicCreateJobPropertiesTypeUSQL TypeBasicCreateJobProperties = "USql"
   155  )
   156  
   157  // PossibleTypeBasicCreateJobPropertiesValues returns an array of possible values for the TypeBasicCreateJobProperties const type.
   158  func PossibleTypeBasicCreateJobPropertiesValues() []TypeBasicCreateJobProperties {
   159  	return []TypeBasicCreateJobProperties{TypeBasicCreateJobPropertiesTypeCreateJobProperties, TypeBasicCreateJobPropertiesTypeScope, TypeBasicCreateJobPropertiesTypeUSQL}
   160  }
   161  
   162  // TypeEnum enumerates the values for type enum.
   163  type TypeEnum string
   164  
   165  const (
   166  	// Hive ...
   167  	Hive TypeEnum = "Hive"
   168  	// Scope ...
   169  	Scope TypeEnum = "Scope"
   170  	// USQL ...
   171  	USQL TypeEnum = "USql"
   172  )
   173  
   174  // PossibleTypeEnumValues returns an array of possible values for the TypeEnum const type.
   175  func PossibleTypeEnumValues() []TypeEnum {
   176  	return []TypeEnum{Hive, Scope, USQL}
   177  }
   178  

View as plain text