package customsearch // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. // ErrorCode enumerates the values for error code. type ErrorCode string const ( // InsufficientAuthorization ... InsufficientAuthorization ErrorCode = "InsufficientAuthorization" // InvalidAuthorization ... InvalidAuthorization ErrorCode = "InvalidAuthorization" // InvalidRequest ... InvalidRequest ErrorCode = "InvalidRequest" // None ... None ErrorCode = "None" // RateLimitExceeded ... RateLimitExceeded ErrorCode = "RateLimitExceeded" // ServerError ... ServerError ErrorCode = "ServerError" ) // PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type. func PossibleErrorCodeValues() []ErrorCode { return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError} } // ErrorSubCode enumerates the values for error sub code. type ErrorSubCode string const ( // AuthorizationDisabled ... AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled" // AuthorizationExpired ... AuthorizationExpired ErrorSubCode = "AuthorizationExpired" // AuthorizationMissing ... AuthorizationMissing ErrorSubCode = "AuthorizationMissing" // AuthorizationRedundancy ... AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy" // Blocked ... Blocked ErrorSubCode = "Blocked" // HTTPNotAllowed ... HTTPNotAllowed ErrorSubCode = "HttpNotAllowed" // NotImplemented ... NotImplemented ErrorSubCode = "NotImplemented" // ParameterInvalidValue ... ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue" // ParameterMissing ... ParameterMissing ErrorSubCode = "ParameterMissing" // ResourceError ... ResourceError ErrorSubCode = "ResourceError" // UnexpectedError ... UnexpectedError ErrorSubCode = "UnexpectedError" ) // PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type. func PossibleErrorSubCodeValues() []ErrorSubCode { return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError} } // SafeSearch enumerates the values for safe search. type SafeSearch string const ( // Moderate ... Moderate SafeSearch = "Moderate" // Off ... Off SafeSearch = "Off" // Strict ... Strict SafeSearch = "Strict" ) // PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type. func PossibleSafeSearchValues() []SafeSearch { return []SafeSearch{Moderate, Off, Strict} } // TextFormat enumerates the values for text format. type TextFormat string const ( // HTML ... HTML TextFormat = "Html" // Raw ... Raw TextFormat = "Raw" ) // PossibleTextFormatValues returns an array of possible values for the TextFormat const type. func PossibleTextFormatValues() []TextFormat { return []TextFormat{HTML, Raw} } // Type enumerates the values for type. type Type string const ( // TypeAnswer ... TypeAnswer Type = "Answer" // TypeCreativeWork ... TypeCreativeWork Type = "CreativeWork" // TypeErrorResponse ... TypeErrorResponse Type = "ErrorResponse" // TypeIdentifiable ... TypeIdentifiable Type = "Identifiable" // TypeResponse ... TypeResponse Type = "Response" // TypeResponseBase ... TypeResponseBase Type = "ResponseBase" // TypeSearchResponse ... TypeSearchResponse Type = "SearchResponse" // TypeSearchResultsAnswer ... TypeSearchResultsAnswer Type = "SearchResultsAnswer" // TypeThing ... TypeThing Type = "Thing" // TypeWebPage ... TypeWebPage Type = "WebPage" // TypeWebWebAnswer ... TypeWebWebAnswer Type = "Web/WebAnswer" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { return []Type{TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeResponse, TypeResponseBase, TypeSearchResponse, TypeSearchResultsAnswer, TypeThing, TypeWebPage, TypeWebWebAnswer} }