1package newssearch
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.
10type ErrorCode string
11
12const (
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.
28func PossibleErrorCodeValues() []ErrorCode {
29	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
30}
31
32// ErrorSubCode enumerates the values for error sub code.
33type ErrorSubCode string
34
35const (
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.
61func PossibleErrorSubCodeValues() []ErrorSubCode {
62	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
63}
64
65// Freshness enumerates the values for freshness.
66type Freshness string
67
68const (
69	// Day ...
70	Day Freshness = "Day"
71	// Month ...
72	Month Freshness = "Month"
73	// Week ...
74	Week Freshness = "Week"
75)
76
77// PossibleFreshnessValues returns an array of possible values for the Freshness const type.
78func PossibleFreshnessValues() []Freshness {
79	return []Freshness{Day, Month, Week}
80}
81
82// SafeSearch enumerates the values for safe search.
83type SafeSearch string
84
85const (
86	// Moderate ...
87	Moderate SafeSearch = "Moderate"
88	// Off ...
89	Off SafeSearch = "Off"
90	// Strict ...
91	Strict SafeSearch = "Strict"
92)
93
94// PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
95func PossibleSafeSearchValues() []SafeSearch {
96	return []SafeSearch{Moderate, Off, Strict}
97}
98
99// TextFormat enumerates the values for text format.
100type TextFormat string
101
102const (
103	// HTML ...
104	HTML TextFormat = "Html"
105	// Raw ...
106	Raw TextFormat = "Raw"
107)
108
109// PossibleTextFormatValues returns an array of possible values for the TextFormat const type.
110func PossibleTextFormatValues() []TextFormat {
111	return []TextFormat{HTML, Raw}
112}
113
114// Type enumerates the values for type.
115type Type string
116
117const (
118	// TypeAnswer ...
119	TypeAnswer Type = "Answer"
120	// TypeArticle ...
121	TypeArticle Type = "Article"
122	// TypeCreativeWork ...
123	TypeCreativeWork Type = "CreativeWork"
124	// TypeErrorResponse ...
125	TypeErrorResponse Type = "ErrorResponse"
126	// TypeIdentifiable ...
127	TypeIdentifiable Type = "Identifiable"
128	// TypeImageObject ...
129	TypeImageObject Type = "ImageObject"
130	// TypeMediaObject ...
131	TypeMediaObject Type = "MediaObject"
132	// TypeNews ...
133	TypeNews Type = "News"
134	// TypeNewsArticle ...
135	TypeNewsArticle Type = "NewsArticle"
136	// TypeNewsTopic ...
137	TypeNewsTopic Type = "News/Topic"
138	// TypeOrganization ...
139	TypeOrganization Type = "Organization"
140	// TypeResponse ...
141	TypeResponse Type = "Response"
142	// TypeResponseBase ...
143	TypeResponseBase Type = "ResponseBase"
144	// TypeSearchResultsAnswer ...
145	TypeSearchResultsAnswer Type = "SearchResultsAnswer"
146	// TypeThing ...
147	TypeThing Type = "Thing"
148	// TypeTrendingTopics ...
149	TypeTrendingTopics Type = "TrendingTopics"
150	// TypeVideoObject ...
151	TypeVideoObject Type = "VideoObject"
152)
153
154// PossibleTypeValues returns an array of possible values for the Type const type.
155func PossibleTypeValues() []Type {
156	return []Type{TypeAnswer, TypeArticle, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeImageObject, TypeMediaObject, TypeNews, TypeNewsArticle, TypeNewsTopic, TypeOrganization, TypeResponse, TypeResponseBase, TypeSearchResultsAnswer, TypeThing, TypeTrendingTopics, TypeVideoObject}
157}
158