...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/spellcheck

     1  package spellcheck
     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  // ActionType enumerates the values for action type.
    10  type ActionType string
    11  
    12  const (
    13  	// Edit ...
    14  	Edit ActionType = "Edit"
    15  	// Load ...
    16  	Load ActionType = "Load"
    17  )
    18  
    19  // PossibleActionTypeValues returns an array of possible values for the ActionType const type.
    20  func PossibleActionTypeValues() []ActionType {
    21  	return []ActionType{Edit, Load}
    22  }
    23  
    24  // ErrorCode enumerates the values for error code.
    25  type ErrorCode string
    26  
    27  const (
    28  	// InsufficientAuthorization ...
    29  	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
    30  	// InvalidAuthorization ...
    31  	InvalidAuthorization ErrorCode = "InvalidAuthorization"
    32  	// InvalidRequest ...
    33  	InvalidRequest ErrorCode = "InvalidRequest"
    34  	// None ...
    35  	None ErrorCode = "None"
    36  	// RateLimitExceeded ...
    37  	RateLimitExceeded ErrorCode = "RateLimitExceeded"
    38  	// ServerError ...
    39  	ServerError ErrorCode = "ServerError"
    40  )
    41  
    42  // PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
    43  func PossibleErrorCodeValues() []ErrorCode {
    44  	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
    45  }
    46  
    47  // ErrorSubCode enumerates the values for error sub code.
    48  type ErrorSubCode string
    49  
    50  const (
    51  	// AuthorizationDisabled ...
    52  	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
    53  	// AuthorizationExpired ...
    54  	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
    55  	// AuthorizationMissing ...
    56  	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
    57  	// AuthorizationRedundancy ...
    58  	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
    59  	// Blocked ...
    60  	Blocked ErrorSubCode = "Blocked"
    61  	// HTTPNotAllowed ...
    62  	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
    63  	// NotImplemented ...
    64  	NotImplemented ErrorSubCode = "NotImplemented"
    65  	// ParameterInvalidValue ...
    66  	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
    67  	// ParameterMissing ...
    68  	ParameterMissing ErrorSubCode = "ParameterMissing"
    69  	// ResourceError ...
    70  	ResourceError ErrorSubCode = "ResourceError"
    71  	// UnexpectedError ...
    72  	UnexpectedError ErrorSubCode = "UnexpectedError"
    73  )
    74  
    75  // PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
    76  func PossibleErrorSubCodeValues() []ErrorSubCode {
    77  	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
    78  }
    79  
    80  // ErrorType enumerates the values for error type.
    81  type ErrorType string
    82  
    83  const (
    84  	// RepeatedToken ...
    85  	RepeatedToken ErrorType = "RepeatedToken"
    86  	// UnknownToken ...
    87  	UnknownToken ErrorType = "UnknownToken"
    88  )
    89  
    90  // PossibleErrorTypeValues returns an array of possible values for the ErrorType const type.
    91  func PossibleErrorTypeValues() []ErrorType {
    92  	return []ErrorType{RepeatedToken, UnknownToken}
    93  }
    94  
    95  // Mode enumerates the values for mode.
    96  type Mode string
    97  
    98  const (
    99  	// Proof ...
   100  	Proof Mode = "proof"
   101  	// Spell ...
   102  	Spell Mode = "spell"
   103  )
   104  
   105  // PossibleModeValues returns an array of possible values for the Mode const type.
   106  func PossibleModeValues() []Mode {
   107  	return []Mode{Proof, Spell}
   108  }
   109  
   110  // Type enumerates the values for type.
   111  type Type string
   112  
   113  const (
   114  	// TypeAnswer ...
   115  	TypeAnswer Type = "Answer"
   116  	// TypeErrorResponse ...
   117  	TypeErrorResponse Type = "ErrorResponse"
   118  	// TypeIdentifiable ...
   119  	TypeIdentifiable Type = "Identifiable"
   120  	// TypeResponse ...
   121  	TypeResponse Type = "Response"
   122  	// TypeResponseBase ...
   123  	TypeResponseBase Type = "ResponseBase"
   124  	// TypeSpellCheck ...
   125  	TypeSpellCheck Type = "SpellCheck"
   126  )
   127  
   128  // PossibleTypeValues returns an array of possible values for the Type const type.
   129  func PossibleTypeValues() []Type {
   130  	return []Type{TypeAnswer, TypeErrorResponse, TypeIdentifiable, TypeResponse, TypeResponseBase, TypeSpellCheck}
   131  }
   132  

View as plain text