...

Source file src/github.com/Azure/azure-sdk-for-go/services/datalake/analytics/2016-11-01/job/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/datalake/analytics/2016-11-01/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  	// StateNew ...
   102  	StateNew State = "New"
   103  	// StatePaused ...
   104  	StatePaused State = "Paused"
   105  	// StateQueued ...
   106  	StateQueued State = "Queued"
   107  	// StateRunning ...
   108  	StateRunning State = "Running"
   109  	// StateScheduling ...
   110  	StateScheduling State = "Scheduling"
   111  	// StateStarting ...
   112  	StateStarting State = "Starting"
   113  	// StateWaitingForCapacity ...
   114  	StateWaitingForCapacity State = "WaitingForCapacity"
   115  )
   116  
   117  // PossibleStateValues returns an array of possible values for the State const type.
   118  func PossibleStateValues() []State {
   119  	return []State{StateAccepted, StateCompiling, StateEnded, StateNew, StatePaused, StateQueued, StateRunning, StateScheduling, StateStarting, StateWaitingForCapacity}
   120  }
   121  
   122  // Type enumerates the values for type.
   123  type Type string
   124  
   125  const (
   126  	// TypeHive ...
   127  	TypeHive Type = "Hive"
   128  	// TypeJobProperties ...
   129  	TypeJobProperties Type = "JobProperties"
   130  	// TypeUSQL ...
   131  	TypeUSQL Type = "USql"
   132  )
   133  
   134  // PossibleTypeValues returns an array of possible values for the Type const type.
   135  func PossibleTypeValues() []Type {
   136  	return []Type{TypeHive, TypeJobProperties, TypeUSQL}
   137  }
   138  
   139  // TypeBasicCreateJobProperties enumerates the values for type basic create job properties.
   140  type TypeBasicCreateJobProperties string
   141  
   142  const (
   143  	// TypeBasicCreateJobPropertiesTypeCreateJobProperties ...
   144  	TypeBasicCreateJobPropertiesTypeCreateJobProperties TypeBasicCreateJobProperties = "CreateJobProperties"
   145  	// TypeBasicCreateJobPropertiesTypeUSQL ...
   146  	TypeBasicCreateJobPropertiesTypeUSQL TypeBasicCreateJobProperties = "USql"
   147  )
   148  
   149  // PossibleTypeBasicCreateJobPropertiesValues returns an array of possible values for the TypeBasicCreateJobProperties const type.
   150  func PossibleTypeBasicCreateJobPropertiesValues() []TypeBasicCreateJobProperties {
   151  	return []TypeBasicCreateJobProperties{TypeBasicCreateJobPropertiesTypeCreateJobProperties, TypeBasicCreateJobPropertiesTypeUSQL}
   152  }
   153  
   154  // TypeEnum enumerates the values for type enum.
   155  type TypeEnum string
   156  
   157  const (
   158  	// Hive ...
   159  	Hive TypeEnum = "Hive"
   160  	// USQL ...
   161  	USQL TypeEnum = "USql"
   162  )
   163  
   164  // PossibleTypeEnumValues returns an array of possible values for the TypeEnum const type.
   165  func PossibleTypeEnumValues() []TypeEnum {
   166  	return []TypeEnum{Hive, USQL}
   167  }
   168  

View as plain text