1package newssearch
2
3// Copyright (c) Microsoft and contributors.  All rights reserved.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17// Code generated by Microsoft (R) AutoRest Code Generator.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20// ErrorCode enumerates the values for error code.
21type ErrorCode string
22
23const (
24	// InsufficientAuthorization ...
25	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
26	// InvalidAuthorization ...
27	InvalidAuthorization ErrorCode = "InvalidAuthorization"
28	// InvalidRequest ...
29	InvalidRequest ErrorCode = "InvalidRequest"
30	// None ...
31	None ErrorCode = "None"
32	// RateLimitExceeded ...
33	RateLimitExceeded ErrorCode = "RateLimitExceeded"
34	// ServerError ...
35	ServerError ErrorCode = "ServerError"
36)
37
38// PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
39func PossibleErrorCodeValues() []ErrorCode {
40	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
41}
42
43// ErrorSubCode enumerates the values for error sub code.
44type ErrorSubCode string
45
46const (
47	// AuthorizationDisabled ...
48	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
49	// AuthorizationExpired ...
50	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
51	// AuthorizationMissing ...
52	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
53	// AuthorizationRedundancy ...
54	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
55	// Blocked ...
56	Blocked ErrorSubCode = "Blocked"
57	// HTTPNotAllowed ...
58	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
59	// NotImplemented ...
60	NotImplemented ErrorSubCode = "NotImplemented"
61	// ParameterInvalidValue ...
62	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
63	// ParameterMissing ...
64	ParameterMissing ErrorSubCode = "ParameterMissing"
65	// ResourceError ...
66	ResourceError ErrorSubCode = "ResourceError"
67	// UnexpectedError ...
68	UnexpectedError ErrorSubCode = "UnexpectedError"
69)
70
71// PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
72func PossibleErrorSubCodeValues() []ErrorSubCode {
73	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
74}
75
76// Freshness enumerates the values for freshness.
77type Freshness string
78
79const (
80	// Day ...
81	Day Freshness = "Day"
82	// Month ...
83	Month Freshness = "Month"
84	// Week ...
85	Week Freshness = "Week"
86)
87
88// PossibleFreshnessValues returns an array of possible values for the Freshness const type.
89func PossibleFreshnessValues() []Freshness {
90	return []Freshness{Day, Month, Week}
91}
92
93// SafeSearch enumerates the values for safe search.
94type SafeSearch string
95
96const (
97	// Moderate ...
98	Moderate SafeSearch = "Moderate"
99	// Off ...
100	Off SafeSearch = "Off"
101	// Strict ...
102	Strict SafeSearch = "Strict"
103)
104
105// PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
106func PossibleSafeSearchValues() []SafeSearch {
107	return []SafeSearch{Moderate, Off, Strict}
108}
109
110// TextFormat enumerates the values for text format.
111type TextFormat string
112
113const (
114	// HTML ...
115	HTML TextFormat = "Html"
116	// Raw ...
117	Raw TextFormat = "Raw"
118)
119
120// PossibleTextFormatValues returns an array of possible values for the TextFormat const type.
121func PossibleTextFormatValues() []TextFormat {
122	return []TextFormat{HTML, Raw}
123}
124
125// Type enumerates the values for type.
126type Type string
127
128const (
129	// TypeAnswer ...
130	TypeAnswer Type = "Answer"
131	// TypeArticle ...
132	TypeArticle Type = "Article"
133	// TypeCreativeWork ...
134	TypeCreativeWork Type = "CreativeWork"
135	// TypeErrorResponse ...
136	TypeErrorResponse Type = "ErrorResponse"
137	// TypeIdentifiable ...
138	TypeIdentifiable Type = "Identifiable"
139	// TypeImageObject ...
140	TypeImageObject Type = "ImageObject"
141	// TypeMediaObject ...
142	TypeMediaObject Type = "MediaObject"
143	// TypeNews ...
144	TypeNews Type = "News"
145	// TypeNewsArticle ...
146	TypeNewsArticle Type = "NewsArticle"
147	// TypeNewsTopic ...
148	TypeNewsTopic Type = "News/Topic"
149	// TypeOrganization ...
150	TypeOrganization Type = "Organization"
151	// TypeResponse ...
152	TypeResponse Type = "Response"
153	// TypeResponseBase ...
154	TypeResponseBase Type = "ResponseBase"
155	// TypeSearchResultsAnswer ...
156	TypeSearchResultsAnswer Type = "SearchResultsAnswer"
157	// TypeThing ...
158	TypeThing Type = "Thing"
159	// TypeTrendingTopics ...
160	TypeTrendingTopics Type = "TrendingTopics"
161	// TypeVideoObject ...
162	TypeVideoObject Type = "VideoObject"
163)
164
165// PossibleTypeValues returns an array of possible values for the Type const type.
166func PossibleTypeValues() []Type {
167	return []Type{TypeAnswer, TypeArticle, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeImageObject, TypeMediaObject, TypeNews, TypeNewsArticle, TypeNewsTopic, TypeOrganization, TypeResponse, TypeResponseBase, TypeSearchResultsAnswer, TypeThing, TypeTrendingTopics, TypeVideoObject}
168}
169