1package localsearch
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// EntityScenario enumerates the values for entity scenario.
21type EntityScenario string
22
23const (
24	// DisambiguationItem ...
25	DisambiguationItem EntityScenario = "DisambiguationItem"
26	// DominantEntity ...
27	DominantEntity EntityScenario = "DominantEntity"
28	// ListItem ...
29	ListItem EntityScenario = "ListItem"
30)
31
32// PossibleEntityScenarioValues returns an array of possible values for the EntityScenario const type.
33func PossibleEntityScenarioValues() []EntityScenario {
34	return []EntityScenario{DisambiguationItem, DominantEntity, ListItem}
35}
36
37// EntityType enumerates the values for entity type.
38type EntityType string
39
40const (
41	// EntityTypeHotel ...
42	EntityTypeHotel EntityType = "Hotel"
43	// EntityTypeLocalBusiness ...
44	EntityTypeLocalBusiness EntityType = "LocalBusiness"
45	// EntityTypePlace ...
46	EntityTypePlace EntityType = "Place"
47	// EntityTypeRestaurant ...
48	EntityTypeRestaurant EntityType = "Restaurant"
49)
50
51// PossibleEntityTypeValues returns an array of possible values for the EntityType const type.
52func PossibleEntityTypeValues() []EntityType {
53	return []EntityType{EntityTypeHotel, EntityTypeLocalBusiness, EntityTypePlace, EntityTypeRestaurant}
54}
55
56// ErrorCode enumerates the values for error code.
57type ErrorCode string
58
59const (
60	// InsufficientAuthorization ...
61	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
62	// InvalidAuthorization ...
63	InvalidAuthorization ErrorCode = "InvalidAuthorization"
64	// InvalidRequest ...
65	InvalidRequest ErrorCode = "InvalidRequest"
66	// None ...
67	None ErrorCode = "None"
68	// RateLimitExceeded ...
69	RateLimitExceeded ErrorCode = "RateLimitExceeded"
70	// ServerError ...
71	ServerError ErrorCode = "ServerError"
72)
73
74// PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
75func PossibleErrorCodeValues() []ErrorCode {
76	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
77}
78
79// ErrorSubCode enumerates the values for error sub code.
80type ErrorSubCode string
81
82const (
83	// AuthorizationDisabled ...
84	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
85	// AuthorizationExpired ...
86	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
87	// AuthorizationMissing ...
88	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
89	// AuthorizationRedundancy ...
90	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
91	// Blocked ...
92	Blocked ErrorSubCode = "Blocked"
93	// HTTPNotAllowed ...
94	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
95	// NotImplemented ...
96	NotImplemented ErrorSubCode = "NotImplemented"
97	// ParameterInvalidValue ...
98	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
99	// ParameterMissing ...
100	ParameterMissing ErrorSubCode = "ParameterMissing"
101	// ResourceError ...
102	ResourceError ErrorSubCode = "ResourceError"
103	// UnexpectedError ...
104	UnexpectedError ErrorSubCode = "UnexpectedError"
105)
106
107// PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
108func PossibleErrorSubCodeValues() []ErrorSubCode {
109	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
110}
111
112// ResponseFormat enumerates the values for response format.
113type ResponseFormat string
114
115const (
116	// JSON ...
117	JSON ResponseFormat = "Json"
118	// JSONLd ...
119	JSONLd ResponseFormat = "JsonLd"
120)
121
122// PossibleResponseFormatValues returns an array of possible values for the ResponseFormat const type.
123func PossibleResponseFormatValues() []ResponseFormat {
124	return []ResponseFormat{JSON, JSONLd}
125}
126
127// SafeSearch enumerates the values for safe search.
128type SafeSearch string
129
130const (
131	// Moderate ...
132	Moderate SafeSearch = "Moderate"
133	// Off ...
134	Off SafeSearch = "Off"
135	// Strict ...
136	Strict SafeSearch = "Strict"
137)
138
139// PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
140func PossibleSafeSearchValues() []SafeSearch {
141	return []SafeSearch{Moderate, Off, Strict}
142}
143
144// Type enumerates the values for type.
145type Type string
146
147const (
148	// TypeQueryContext ...
149	TypeQueryContext Type = "QueryContext"
150)
151
152// PossibleTypeValues returns an array of possible values for the Type const type.
153func PossibleTypeValues() []Type {
154	return []Type{TypeQueryContext}
155}
156
157// TypeBasicEntitiesEntityPresentationInfo enumerates the values for type basic entities entity presentation
158// info.
159type TypeBasicEntitiesEntityPresentationInfo string
160
161const (
162	// TypeEntitiesEntityPresentationInfo ...
163	TypeEntitiesEntityPresentationInfo TypeBasicEntitiesEntityPresentationInfo = "Entities/EntityPresentationInfo"
164)
165
166// PossibleTypeBasicEntitiesEntityPresentationInfoValues returns an array of possible values for the TypeBasicEntitiesEntityPresentationInfo const type.
167func PossibleTypeBasicEntitiesEntityPresentationInfoValues() []TypeBasicEntitiesEntityPresentationInfo {
168	return []TypeBasicEntitiesEntityPresentationInfo{TypeEntitiesEntityPresentationInfo}
169}
170
171// TypeBasicError enumerates the values for type basic error.
172type TypeBasicError string
173
174const (
175	// TypeError ...
176	TypeError TypeBasicError = "Error"
177)
178
179// PossibleTypeBasicErrorValues returns an array of possible values for the TypeBasicError const type.
180func PossibleTypeBasicErrorValues() []TypeBasicError {
181	return []TypeBasicError{TypeError}
182}
183
184// TypeBasicGeoCoordinates enumerates the values for type basic geo coordinates.
185type TypeBasicGeoCoordinates string
186
187const (
188	// TypeGeoCoordinates ...
189	TypeGeoCoordinates TypeBasicGeoCoordinates = "GeoCoordinates"
190)
191
192// PossibleTypeBasicGeoCoordinatesValues returns an array of possible values for the TypeBasicGeoCoordinates const type.
193func PossibleTypeBasicGeoCoordinatesValues() []TypeBasicGeoCoordinates {
194	return []TypeBasicGeoCoordinates{TypeGeoCoordinates}
195}
196
197// TypeBasicResponseBase enumerates the values for type basic response base.
198type TypeBasicResponseBase string
199
200const (
201	// TypeAction ...
202	TypeAction TypeBasicResponseBase = "Action"
203	// TypeAnswer ...
204	TypeAnswer TypeBasicResponseBase = "Answer"
205	// TypeCreativeWork ...
206	TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
207	// TypeErrorResponse ...
208	TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
209	// TypeIdentifiable ...
210	TypeIdentifiable TypeBasicResponseBase = "Identifiable"
211	// TypeIntangible ...
212	TypeIntangible TypeBasicResponseBase = "Intangible"
213	// TypePlace ...
214	TypePlace TypeBasicResponseBase = "Place"
215	// TypePlaces ...
216	TypePlaces TypeBasicResponseBase = "Places"
217	// TypePostalAddress ...
218	TypePostalAddress TypeBasicResponseBase = "PostalAddress"
219	// TypeResponse ...
220	TypeResponse TypeBasicResponseBase = "Response"
221	// TypeResponseBase ...
222	TypeResponseBase TypeBasicResponseBase = "ResponseBase"
223	// TypeSearchAction ...
224	TypeSearchAction TypeBasicResponseBase = "SearchAction"
225	// TypeSearchResponse ...
226	TypeSearchResponse TypeBasicResponseBase = "SearchResponse"
227	// TypeSearchResultsAnswer ...
228	TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
229	// TypeStructuredValue ...
230	TypeStructuredValue TypeBasicResponseBase = "StructuredValue"
231	// TypeThing ...
232	TypeThing TypeBasicResponseBase = "Thing"
233)
234
235// PossibleTypeBasicResponseBaseValues returns an array of possible values for the TypeBasicResponseBase const type.
236func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
237	return []TypeBasicResponseBase{TypeAction, TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeIntangible, TypePlace, TypePlaces, TypePostalAddress, TypeResponse, TypeResponseBase, TypeSearchAction, TypeSearchResponse, TypeSearchResultsAnswer, TypeStructuredValue, TypeThing}
238}
239