...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/qnamaker/cognitiveservices/v5.0-preview.1/qnamaker

     1  package qnamaker
     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  // EnvironmentType enumerates the values for environment type.
    10  type EnvironmentType string
    11  
    12  const (
    13  	// Prod ...
    14  	Prod EnvironmentType = "Prod"
    15  	// Test ...
    16  	Test EnvironmentType = "Test"
    17  )
    18  
    19  // PossibleEnvironmentTypeValues returns an array of possible values for the EnvironmentType const type.
    20  func PossibleEnvironmentTypeValues() []EnvironmentType {
    21  	return []EnvironmentType{Prod, Test}
    22  }
    23  
    24  // ErrorCodeType enumerates the values for error code type.
    25  type ErrorCodeType string
    26  
    27  const (
    28  	// BadArgument ...
    29  	BadArgument ErrorCodeType = "BadArgument"
    30  	// EndpointKeysError ...
    31  	EndpointKeysError ErrorCodeType = "EndpointKeysError"
    32  	// ExtractionFailure ...
    33  	ExtractionFailure ErrorCodeType = "ExtractionFailure"
    34  	// Forbidden ...
    35  	Forbidden ErrorCodeType = "Forbidden"
    36  	// KbNotFound ...
    37  	KbNotFound ErrorCodeType = "KbNotFound"
    38  	// NotFound ...
    39  	NotFound ErrorCodeType = "NotFound"
    40  	// OperationNotFound ...
    41  	OperationNotFound ErrorCodeType = "OperationNotFound"
    42  	// QnaRuntimeError ...
    43  	QnaRuntimeError ErrorCodeType = "QnaRuntimeError"
    44  	// QuotaExceeded ...
    45  	QuotaExceeded ErrorCodeType = "QuotaExceeded"
    46  	// ServiceError ...
    47  	ServiceError ErrorCodeType = "ServiceError"
    48  	// SKULimitExceeded ...
    49  	SKULimitExceeded ErrorCodeType = "SKULimitExceeded"
    50  	// Unauthorized ...
    51  	Unauthorized ErrorCodeType = "Unauthorized"
    52  	// Unspecified ...
    53  	Unspecified ErrorCodeType = "Unspecified"
    54  	// ValidationFailure ...
    55  	ValidationFailure ErrorCodeType = "ValidationFailure"
    56  )
    57  
    58  // PossibleErrorCodeTypeValues returns an array of possible values for the ErrorCodeType const type.
    59  func PossibleErrorCodeTypeValues() []ErrorCodeType {
    60  	return []ErrorCodeType{BadArgument, EndpointKeysError, ExtractionFailure, Forbidden, KbNotFound, NotFound, OperationNotFound, QnaRuntimeError, QuotaExceeded, ServiceError, SKULimitExceeded, Unauthorized, Unspecified, ValidationFailure}
    61  }
    62  
    63  // OperationStateType enumerates the values for operation state type.
    64  type OperationStateType string
    65  
    66  const (
    67  	// Failed ...
    68  	Failed OperationStateType = "Failed"
    69  	// NotStarted ...
    70  	NotStarted OperationStateType = "NotStarted"
    71  	// Running ...
    72  	Running OperationStateType = "Running"
    73  	// Succeeded ...
    74  	Succeeded OperationStateType = "Succeeded"
    75  )
    76  
    77  // PossibleOperationStateTypeValues returns an array of possible values for the OperationStateType const type.
    78  func PossibleOperationStateTypeValues() []OperationStateType {
    79  	return []OperationStateType{Failed, NotStarted, Running, Succeeded}
    80  }
    81  
    82  // StrictFiltersCompoundOperationType enumerates the values for strict filters compound operation type.
    83  type StrictFiltersCompoundOperationType string
    84  
    85  const (
    86  	// AND ...
    87  	AND StrictFiltersCompoundOperationType = "AND"
    88  	// OR ...
    89  	OR StrictFiltersCompoundOperationType = "OR"
    90  )
    91  
    92  // PossibleStrictFiltersCompoundOperationTypeValues returns an array of possible values for the StrictFiltersCompoundOperationType const type.
    93  func PossibleStrictFiltersCompoundOperationTypeValues() []StrictFiltersCompoundOperationType {
    94  	return []StrictFiltersCompoundOperationType{AND, OR}
    95  }
    96  

View as plain text