package newssearch // 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} } // Freshness enumerates the values for freshness. type Freshness string const ( // Day ... Day Freshness = "Day" // Month ... Month Freshness = "Month" // Week ... Week Freshness = "Week" ) // PossibleFreshnessValues returns an array of possible values for the Freshness const type. func PossibleFreshnessValues() []Freshness { return []Freshness{Day, Month, Week} } // 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" // TypeArticle ... TypeArticle Type = "Article" // TypeCreativeWork ... TypeCreativeWork Type = "CreativeWork" // TypeErrorResponse ... TypeErrorResponse Type = "ErrorResponse" // TypeIdentifiable ... TypeIdentifiable Type = "Identifiable" // TypeImageObject ... TypeImageObject Type = "ImageObject" // TypeMediaObject ... TypeMediaObject Type = "MediaObject" // TypeNews ... TypeNews Type = "News" // TypeNewsArticle ... TypeNewsArticle Type = "NewsArticle" // TypeNewsTopic ... TypeNewsTopic Type = "News/Topic" // TypeOrganization ... TypeOrganization Type = "Organization" // TypeResponse ... TypeResponse Type = "Response" // TypeResponseBase ... TypeResponseBase Type = "ResponseBase" // TypeSearchResultsAnswer ... TypeSearchResultsAnswer Type = "SearchResultsAnswer" // TypeThing ... TypeThing Type = "Thing" // TypeTrendingTopics ... TypeTrendingTopics Type = "TrendingTopics" // TypeVideoObject ... TypeVideoObject Type = "VideoObject" ) // PossibleTypeValues returns an array of possible values for the Type const type. func PossibleTypeValues() []Type { return []Type{TypeAnswer, TypeArticle, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeImageObject, TypeMediaObject, TypeNews, TypeNewsArticle, TypeNewsTopic, TypeOrganization, TypeResponse, TypeResponseBase, TypeSearchResultsAnswer, TypeThing, TypeTrendingTopics, TypeVideoObject} }