1package autosuggest
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// ResponseFormat enumerates the values for response format.
33type ResponseFormat string
34
35const (
36	// JSON ...
37	JSON ResponseFormat = "Json"
38	// JSONLd ...
39	JSONLd ResponseFormat = "JsonLd"
40)
41
42// PossibleResponseFormatValues returns an array of possible values for the ResponseFormat const type.
43func PossibleResponseFormatValues() []ResponseFormat {
44	return []ResponseFormat{JSON, JSONLd}
45}
46
47// SafeSearch enumerates the values for safe search.
48type SafeSearch string
49
50const (
51	// Moderate ...
52	Moderate SafeSearch = "Moderate"
53	// Off ...
54	Off SafeSearch = "Off"
55	// Strict ...
56	Strict SafeSearch = "Strict"
57)
58
59// PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
60func PossibleSafeSearchValues() []SafeSearch {
61	return []SafeSearch{Moderate, Off, Strict}
62}
63
64// ScenarioType enumerates the values for scenario type.
65type ScenarioType string
66
67const (
68	// Custom ...
69	Custom ScenarioType = "Custom"
70	// PersonalSearchDocuments ...
71	PersonalSearchDocuments ScenarioType = "PersonalSearchDocuments"
72	// PersonalSearchTags ...
73	PersonalSearchTags ScenarioType = "PersonalSearchTags"
74	// SearchHistory ...
75	SearchHistory ScenarioType = "SearchHistory"
76	// StoreApps ...
77	StoreApps ScenarioType = "StoreApps"
78	// Unknown ...
79	Unknown ScenarioType = "Unknown"
80	// Web ...
81	Web ScenarioType = "Web"
82)
83
84// PossibleScenarioTypeValues returns an array of possible values for the ScenarioType const type.
85func PossibleScenarioTypeValues() []ScenarioType {
86	return []ScenarioType{Custom, PersonalSearchDocuments, PersonalSearchTags, SearchHistory, StoreApps, Unknown, Web}
87}
88
89// SearchKind enumerates the values for search kind.
90type SearchKind string
91
92const (
93	// CustomSearch ...
94	CustomSearch SearchKind = "CustomSearch"
95	// DocumentSearch ...
96	DocumentSearch SearchKind = "DocumentSearch"
97	// HistorySearch ...
98	HistorySearch SearchKind = "HistorySearch"
99	// LocationSearch ...
100	LocationSearch SearchKind = "LocationSearch"
101	// TagSearch ...
102	TagSearch SearchKind = "TagSearch"
103	// WebSearch ...
104	WebSearch SearchKind = "WebSearch"
105)
106
107// PossibleSearchKindValues returns an array of possible values for the SearchKind const type.
108func PossibleSearchKindValues() []SearchKind {
109	return []SearchKind{CustomSearch, DocumentSearch, HistorySearch, LocationSearch, TagSearch, WebSearch}
110}
111
112// Type enumerates the values for type.
113type Type string
114
115const (
116	// TypeSuggestionsSuggestionGroup ...
117	TypeSuggestionsSuggestionGroup Type = "Suggestions/SuggestionGroup"
118)
119
120// PossibleTypeValues returns an array of possible values for the Type const type.
121func PossibleTypeValues() []Type {
122	return []Type{TypeSuggestionsSuggestionGroup}
123}
124
125// TypeBasicError enumerates the values for type basic error.
126type TypeBasicError string
127
128const (
129	// TypeError ...
130	TypeError TypeBasicError = "Error"
131)
132
133// PossibleTypeBasicErrorValues returns an array of possible values for the TypeBasicError const type.
134func PossibleTypeBasicErrorValues() []TypeBasicError {
135	return []TypeBasicError{TypeError}
136}
137
138// TypeBasicQueryContext enumerates the values for type basic query context.
139type TypeBasicQueryContext string
140
141const (
142	// TypeQueryContext ...
143	TypeQueryContext TypeBasicQueryContext = "QueryContext"
144)
145
146// PossibleTypeBasicQueryContextValues returns an array of possible values for the TypeBasicQueryContext const type.
147func PossibleTypeBasicQueryContextValues() []TypeBasicQueryContext {
148	return []TypeBasicQueryContext{TypeQueryContext}
149}
150
151// TypeBasicResponseBase enumerates the values for type basic response base.
152type TypeBasicResponseBase string
153
154const (
155	// TypeAction ...
156	TypeAction TypeBasicResponseBase = "Action"
157	// TypeAnswer ...
158	TypeAnswer TypeBasicResponseBase = "Answer"
159	// TypeCreativeWork ...
160	TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
161	// TypeErrorResponse ...
162	TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
163	// TypeIdentifiable ...
164	TypeIdentifiable TypeBasicResponseBase = "Identifiable"
165	// TypeResponse ...
166	TypeResponse TypeBasicResponseBase = "Response"
167	// TypeResponseBase ...
168	TypeResponseBase TypeBasicResponseBase = "ResponseBase"
169	// TypeSearchAction ...
170	TypeSearchAction TypeBasicResponseBase = "SearchAction"
171	// TypeSearchResultsAnswer ...
172	TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
173	// TypeSuggestions ...
174	TypeSuggestions TypeBasicResponseBase = "Suggestions"
175	// TypeThing ...
176	TypeThing TypeBasicResponseBase = "Thing"
177)
178
179// PossibleTypeBasicResponseBaseValues returns an array of possible values for the TypeBasicResponseBase const type.
180func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
181	return []TypeBasicResponseBase{TypeAction, TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeResponse, TypeResponseBase, TypeSearchAction, TypeSearchResultsAnswer, TypeSuggestions, TypeThing}
182}
183