...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v4.0/qnamakerruntime/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v4.0/qnamakerruntime

     1  package qnamakerruntime
     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  // ErrorCodeType enumerates the values for error code type.
    10  type ErrorCodeType string
    11  
    12  const (
    13  	// BadArgument ...
    14  	BadArgument ErrorCodeType = "BadArgument"
    15  	// EndpointKeysError ...
    16  	EndpointKeysError ErrorCodeType = "EndpointKeysError"
    17  	// ExtractionFailure ...
    18  	ExtractionFailure ErrorCodeType = "ExtractionFailure"
    19  	// Forbidden ...
    20  	Forbidden ErrorCodeType = "Forbidden"
    21  	// KbNotFound ...
    22  	KbNotFound ErrorCodeType = "KbNotFound"
    23  	// NotFound ...
    24  	NotFound ErrorCodeType = "NotFound"
    25  	// OperationNotFound ...
    26  	OperationNotFound ErrorCodeType = "OperationNotFound"
    27  	// QnaRuntimeError ...
    28  	QnaRuntimeError ErrorCodeType = "QnaRuntimeError"
    29  	// QuotaExceeded ...
    30  	QuotaExceeded ErrorCodeType = "QuotaExceeded"
    31  	// ServiceError ...
    32  	ServiceError ErrorCodeType = "ServiceError"
    33  	// SKULimitExceeded ...
    34  	SKULimitExceeded ErrorCodeType = "SKULimitExceeded"
    35  	// Unauthorized ...
    36  	Unauthorized ErrorCodeType = "Unauthorized"
    37  	// Unspecified ...
    38  	Unspecified ErrorCodeType = "Unspecified"
    39  	// ValidationFailure ...
    40  	ValidationFailure ErrorCodeType = "ValidationFailure"
    41  )
    42  
    43  // PossibleErrorCodeTypeValues returns an array of possible values for the ErrorCodeType const type.
    44  func PossibleErrorCodeTypeValues() []ErrorCodeType {
    45  	return []ErrorCodeType{BadArgument, EndpointKeysError, ExtractionFailure, Forbidden, KbNotFound, NotFound, OperationNotFound, QnaRuntimeError, QuotaExceeded, ServiceError, SKULimitExceeded, Unauthorized, Unspecified, ValidationFailure}
    46  }
    47  
    48  // StrictFiltersCompoundOperationType enumerates the values for strict filters compound operation type.
    49  type StrictFiltersCompoundOperationType string
    50  
    51  const (
    52  	// AND ...
    53  	AND StrictFiltersCompoundOperationType = "AND"
    54  	// OR ...
    55  	OR StrictFiltersCompoundOperationType = "OR"
    56  )
    57  
    58  // PossibleStrictFiltersCompoundOperationTypeValues returns an array of possible values for the StrictFiltersCompoundOperationType const type.
    59  func PossibleStrictFiltersCompoundOperationTypeValues() []StrictFiltersCompoundOperationType {
    60  	return []StrictFiltersCompoundOperationType{AND, OR}
    61  }
    62  

View as plain text