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