...

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

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

     1  package customsearch
     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  // ErrorCode enumerates the values for error code.
    10  type ErrorCode string
    11  
    12  const (
    13  	// InsufficientAuthorization ...
    14  	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
    15  	// InvalidAuthorization ...
    16  	InvalidAuthorization ErrorCode = "InvalidAuthorization"
    17  	// InvalidRequest ...
    18  	InvalidRequest ErrorCode = "InvalidRequest"
    19  	// None ...
    20  	None ErrorCode = "None"
    21  	// RateLimitExceeded ...
    22  	RateLimitExceeded ErrorCode = "RateLimitExceeded"
    23  	// ServerError ...
    24  	ServerError ErrorCode = "ServerError"
    25  )
    26  
    27  // PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
    28  func PossibleErrorCodeValues() []ErrorCode {
    29  	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
    30  }
    31  
    32  // ErrorSubCode enumerates the values for error sub code.
    33  type ErrorSubCode string
    34  
    35  const (
    36  	// AuthorizationDisabled ...
    37  	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
    38  	// AuthorizationExpired ...
    39  	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
    40  	// AuthorizationMissing ...
    41  	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
    42  	// AuthorizationRedundancy ...
    43  	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
    44  	// Blocked ...
    45  	Blocked ErrorSubCode = "Blocked"
    46  	// HTTPNotAllowed ...
    47  	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
    48  	// NotImplemented ...
    49  	NotImplemented ErrorSubCode = "NotImplemented"
    50  	// ParameterInvalidValue ...
    51  	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
    52  	// ParameterMissing ...
    53  	ParameterMissing ErrorSubCode = "ParameterMissing"
    54  	// ResourceError ...
    55  	ResourceError ErrorSubCode = "ResourceError"
    56  	// UnexpectedError ...
    57  	UnexpectedError ErrorSubCode = "UnexpectedError"
    58  )
    59  
    60  // PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
    61  func PossibleErrorSubCodeValues() []ErrorSubCode {
    62  	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
    63  }
    64  
    65  // SafeSearch enumerates the values for safe search.
    66  type SafeSearch string
    67  
    68  const (
    69  	// Moderate ...
    70  	Moderate SafeSearch = "Moderate"
    71  	// Off ...
    72  	Off SafeSearch = "Off"
    73  	// Strict ...
    74  	Strict SafeSearch = "Strict"
    75  )
    76  
    77  // PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
    78  func PossibleSafeSearchValues() []SafeSearch {
    79  	return []SafeSearch{Moderate, Off, Strict}
    80  }
    81  
    82  // TextFormat enumerates the values for text format.
    83  type TextFormat string
    84  
    85  const (
    86  	// HTML ...
    87  	HTML TextFormat = "Html"
    88  	// Raw ...
    89  	Raw TextFormat = "Raw"
    90  )
    91  
    92  // PossibleTextFormatValues returns an array of possible values for the TextFormat const type.
    93  func PossibleTextFormatValues() []TextFormat {
    94  	return []TextFormat{HTML, Raw}
    95  }
    96  
    97  // Type enumerates the values for type.
    98  type Type string
    99  
   100  const (
   101  	// TypeAnswer ...
   102  	TypeAnswer Type = "Answer"
   103  	// TypeCreativeWork ...
   104  	TypeCreativeWork Type = "CreativeWork"
   105  	// TypeErrorResponse ...
   106  	TypeErrorResponse Type = "ErrorResponse"
   107  	// TypeIdentifiable ...
   108  	TypeIdentifiable Type = "Identifiable"
   109  	// TypeResponse ...
   110  	TypeResponse Type = "Response"
   111  	// TypeResponseBase ...
   112  	TypeResponseBase Type = "ResponseBase"
   113  	// TypeSearchResponse ...
   114  	TypeSearchResponse Type = "SearchResponse"
   115  	// TypeSearchResultsAnswer ...
   116  	TypeSearchResultsAnswer Type = "SearchResultsAnswer"
   117  	// TypeThing ...
   118  	TypeThing Type = "Thing"
   119  	// TypeWebPage ...
   120  	TypeWebPage Type = "WebPage"
   121  	// TypeWebWebAnswer ...
   122  	TypeWebWebAnswer Type = "Web/WebAnswer"
   123  )
   124  
   125  // PossibleTypeValues returns an array of possible values for the Type const type.
   126  func PossibleTypeValues() []Type {
   127  	return []Type{TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeResponse, TypeResponseBase, TypeSearchResponse, TypeSearchResultsAnswer, TypeThing, TypeWebPage, TypeWebWebAnswer}
   128  }
   129  

View as plain text