forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
314 lines (273 loc) · 13.9 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package entitysearch
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/entitysearch"
const (
DefaultBaseURI = original.DefaultBaseURI
)
type BaseClient = original.BaseClient
func New() BaseClient {
return original.New()
}
func NewWithBaseURI(baseURI string) BaseClient {
return original.NewWithBaseURI(baseURI)
}
type EntitiesClient = original.EntitiesClient
func NewEntitiesClient() EntitiesClient {
return original.NewEntitiesClient()
}
func NewEntitiesClientWithBaseURI(baseURI string) EntitiesClient {
return original.NewEntitiesClientWithBaseURI(baseURI)
}
type AnswerType = original.AnswerType
const (
AnswerTypeEntities AnswerType = original.AnswerTypeEntities
AnswerTypePlaces AnswerType = original.AnswerTypePlaces
)
func PossibleAnswerTypeValues() []AnswerType {
return original.PossibleAnswerTypeValues()
}
type EntityQueryScenario = original.EntityQueryScenario
const (
Disambiguation EntityQueryScenario = original.Disambiguation
DominantEntity EntityQueryScenario = original.DominantEntity
DominantEntityWithDisambiguation EntityQueryScenario = original.DominantEntityWithDisambiguation
List EntityQueryScenario = original.List
ListWithPivot EntityQueryScenario = original.ListWithPivot
)
func PossibleEntityQueryScenarioValues() []EntityQueryScenario {
return original.PossibleEntityQueryScenarioValues()
}
type EntityScenario = original.EntityScenario
const (
EntityScenarioDisambiguationItem EntityScenario = original.EntityScenarioDisambiguationItem
EntityScenarioDominantEntity EntityScenario = original.EntityScenarioDominantEntity
EntityScenarioListItem EntityScenario = original.EntityScenarioListItem
)
func PossibleEntityScenarioValues() []EntityScenario {
return original.PossibleEntityScenarioValues()
}
type EntityType = original.EntityType
const (
EntityTypeActor EntityType = original.EntityTypeActor
EntityTypeAnimal EntityType = original.EntityTypeAnimal
EntityTypeArtist EntityType = original.EntityTypeArtist
EntityTypeAttorney EntityType = original.EntityTypeAttorney
EntityTypeAttraction EntityType = original.EntityTypeAttraction
EntityTypeBook EntityType = original.EntityTypeBook
EntityTypeCar EntityType = original.EntityTypeCar
EntityTypeCity EntityType = original.EntityTypeCity
EntityTypeCollegeOrUniversity EntityType = original.EntityTypeCollegeOrUniversity
EntityTypeComposition EntityType = original.EntityTypeComposition
EntityTypeContinent EntityType = original.EntityTypeContinent
EntityTypeCountry EntityType = original.EntityTypeCountry
EntityTypeDrug EntityType = original.EntityTypeDrug
EntityTypeEvent EntityType = original.EntityTypeEvent
EntityTypeFood EntityType = original.EntityTypeFood
EntityTypeGeneric EntityType = original.EntityTypeGeneric
EntityTypeHotel EntityType = original.EntityTypeHotel
EntityTypeHouse EntityType = original.EntityTypeHouse
EntityTypeLocalBusiness EntityType = original.EntityTypeLocalBusiness
EntityTypeLocality EntityType = original.EntityTypeLocality
EntityTypeMedia EntityType = original.EntityTypeMedia
EntityTypeMinorRegion EntityType = original.EntityTypeMinorRegion
EntityTypeMovie EntityType = original.EntityTypeMovie
EntityTypeMusicAlbum EntityType = original.EntityTypeMusicAlbum
EntityTypeMusicGroup EntityType = original.EntityTypeMusicGroup
EntityTypeMusicRecording EntityType = original.EntityTypeMusicRecording
EntityTypeNeighborhood EntityType = original.EntityTypeNeighborhood
EntityTypeOrganization EntityType = original.EntityTypeOrganization
EntityTypeOther EntityType = original.EntityTypeOther
EntityTypePerson EntityType = original.EntityTypePerson
EntityTypePlace EntityType = original.EntityTypePlace
EntityTypePointOfInterest EntityType = original.EntityTypePointOfInterest
EntityTypePostalCode EntityType = original.EntityTypePostalCode
EntityTypeProduct EntityType = original.EntityTypeProduct
EntityTypeRadioStation EntityType = original.EntityTypeRadioStation
EntityTypeRegion EntityType = original.EntityTypeRegion
EntityTypeRestaurant EntityType = original.EntityTypeRestaurant
EntityTypeSchool EntityType = original.EntityTypeSchool
EntityTypeSpeciality EntityType = original.EntityTypeSpeciality
EntityTypeSportsTeam EntityType = original.EntityTypeSportsTeam
EntityTypeState EntityType = original.EntityTypeState
EntityTypeStreetAddress EntityType = original.EntityTypeStreetAddress
EntityTypeSubRegion EntityType = original.EntityTypeSubRegion
EntityTypeTelevisionSeason EntityType = original.EntityTypeTelevisionSeason
EntityTypeTelevisionShow EntityType = original.EntityTypeTelevisionShow
EntityTypeTheaterPlay EntityType = original.EntityTypeTheaterPlay
EntityTypeTouristAttraction EntityType = original.EntityTypeTouristAttraction
EntityTypeTravel EntityType = original.EntityTypeTravel
EntityTypeVideoGame EntityType = original.EntityTypeVideoGame
)
func PossibleEntityTypeValues() []EntityType {
return original.PossibleEntityTypeValues()
}
type ErrorCode = original.ErrorCode
const (
InsufficientAuthorization ErrorCode = original.InsufficientAuthorization
InvalidAuthorization ErrorCode = original.InvalidAuthorization
InvalidRequest ErrorCode = original.InvalidRequest
None ErrorCode = original.None
RateLimitExceeded ErrorCode = original.RateLimitExceeded
ServerError ErrorCode = original.ServerError
)
func PossibleErrorCodeValues() []ErrorCode {
return original.PossibleErrorCodeValues()
}
type ErrorSubCode = original.ErrorSubCode
const (
AuthorizationDisabled ErrorSubCode = original.AuthorizationDisabled
AuthorizationExpired ErrorSubCode = original.AuthorizationExpired
AuthorizationMissing ErrorSubCode = original.AuthorizationMissing
AuthorizationRedundancy ErrorSubCode = original.AuthorizationRedundancy
Blocked ErrorSubCode = original.Blocked
HTTPNotAllowed ErrorSubCode = original.HTTPNotAllowed
NotImplemented ErrorSubCode = original.NotImplemented
ParameterInvalidValue ErrorSubCode = original.ParameterInvalidValue
ParameterMissing ErrorSubCode = original.ParameterMissing
ResourceError ErrorSubCode = original.ResourceError
UnexpectedError ErrorSubCode = original.UnexpectedError
)
func PossibleErrorSubCodeValues() []ErrorSubCode {
return original.PossibleErrorSubCodeValues()
}
type ResponseFormat = original.ResponseFormat
const (
JSON ResponseFormat = original.JSON
JSONLd ResponseFormat = original.JSONLd
)
func PossibleResponseFormatValues() []ResponseFormat {
return original.PossibleResponseFormatValues()
}
type SafeSearch = original.SafeSearch
const (
Moderate SafeSearch = original.Moderate
Off SafeSearch = original.Off
Strict SafeSearch = original.Strict
)
func PossibleSafeSearchValues() []SafeSearch {
return original.PossibleSafeSearchValues()
}
type Type = original.Type
const (
TypeContractualRulesAttribution Type = original.TypeContractualRulesAttribution
TypeContractualRulesContractualRule Type = original.TypeContractualRulesContractualRule
TypeContractualRulesLicenseAttribution Type = original.TypeContractualRulesLicenseAttribution
TypeContractualRulesLinkAttribution Type = original.TypeContractualRulesLinkAttribution
TypeContractualRulesMediaAttribution Type = original.TypeContractualRulesMediaAttribution
TypeContractualRulesTextAttribution Type = original.TypeContractualRulesTextAttribution
)
func PossibleTypeValues() []Type {
return original.PossibleTypeValues()
}
type TypeBasicResponseBase = original.TypeBasicResponseBase
const (
TypeAirport TypeBasicResponseBase = original.TypeAirport
TypeAnswer TypeBasicResponseBase = original.TypeAnswer
TypeCivicStructure TypeBasicResponseBase = original.TypeCivicStructure
TypeCreativeWork TypeBasicResponseBase = original.TypeCreativeWork
TypeEntertainmentBusiness TypeBasicResponseBase = original.TypeEntertainmentBusiness
TypeEntities TypeBasicResponseBase = original.TypeEntities
TypeErrorResponse TypeBasicResponseBase = original.TypeErrorResponse
TypeFoodEstablishment TypeBasicResponseBase = original.TypeFoodEstablishment
TypeHotel TypeBasicResponseBase = original.TypeHotel
TypeIdentifiable TypeBasicResponseBase = original.TypeIdentifiable
TypeImageObject TypeBasicResponseBase = original.TypeImageObject
TypeIntangible TypeBasicResponseBase = original.TypeIntangible
TypeLicense TypeBasicResponseBase = original.TypeLicense
TypeLocalBusiness TypeBasicResponseBase = original.TypeLocalBusiness
TypeLodgingBusiness TypeBasicResponseBase = original.TypeLodgingBusiness
TypeMediaObject TypeBasicResponseBase = original.TypeMediaObject
TypeMovieTheater TypeBasicResponseBase = original.TypeMovieTheater
TypeOrganization TypeBasicResponseBase = original.TypeOrganization
TypePlace TypeBasicResponseBase = original.TypePlace
TypePlaces TypeBasicResponseBase = original.TypePlaces
TypePostalAddress TypeBasicResponseBase = original.TypePostalAddress
TypeResponse TypeBasicResponseBase = original.TypeResponse
TypeResponseBase TypeBasicResponseBase = original.TypeResponseBase
TypeRestaurant TypeBasicResponseBase = original.TypeRestaurant
TypeSearchResponse TypeBasicResponseBase = original.TypeSearchResponse
TypeSearchResultsAnswer TypeBasicResponseBase = original.TypeSearchResultsAnswer
TypeStructuredValue TypeBasicResponseBase = original.TypeStructuredValue
TypeThing TypeBasicResponseBase = original.TypeThing
TypeTouristAttraction TypeBasicResponseBase = original.TypeTouristAttraction
)
func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
return original.PossibleTypeBasicResponseBaseValues()
}
type Airport = original.Airport
type BasicAnswer = original.BasicAnswer
type Answer = original.Answer
type BasicCivicStructure = original.BasicCivicStructure
type CivicStructure = original.CivicStructure
type BasicContractualRulesAttribution = original.BasicContractualRulesAttribution
type ContractualRulesAttribution = original.ContractualRulesAttribution
type BasicContractualRulesContractualRule = original.BasicContractualRulesContractualRule
type ContractualRulesContractualRule = original.ContractualRulesContractualRule
type ContractualRulesLicenseAttribution = original.ContractualRulesLicenseAttribution
type ContractualRulesLinkAttribution = original.ContractualRulesLinkAttribution
type ContractualRulesMediaAttribution = original.ContractualRulesMediaAttribution
type ContractualRulesTextAttribution = original.ContractualRulesTextAttribution
type BasicCreativeWork = original.BasicCreativeWork
type CreativeWork = original.CreativeWork
type BasicEntertainmentBusiness = original.BasicEntertainmentBusiness
type EntertainmentBusiness = original.EntertainmentBusiness
type Entities = original.Entities
type EntitiesEntityPresentationInfo = original.EntitiesEntityPresentationInfo
type Error = original.Error
type ErrorResponse = original.ErrorResponse
type BasicFoodEstablishment = original.BasicFoodEstablishment
type FoodEstablishment = original.FoodEstablishment
type Hotel = original.Hotel
type BasicIdentifiable = original.BasicIdentifiable
type Identifiable = original.Identifiable
type ImageObject = original.ImageObject
type BasicIntangible = original.BasicIntangible
type Intangible = original.Intangible
type License = original.License
type BasicLocalBusiness = original.BasicLocalBusiness
type LocalBusiness = original.LocalBusiness
type BasicLodgingBusiness = original.BasicLodgingBusiness
type LodgingBusiness = original.LodgingBusiness
type BasicMediaObject = original.BasicMediaObject
type MediaObject = original.MediaObject
type MovieTheater = original.MovieTheater
type Organization = original.Organization
type BasicPlace = original.BasicPlace
type Place = original.Place
type Places = original.Places
type PostalAddress = original.PostalAddress
type QueryContext = original.QueryContext
type BasicResponse = original.BasicResponse
type Response = original.Response
type BasicResponseBase = original.BasicResponseBase
type ResponseBase = original.ResponseBase
type Restaurant = original.Restaurant
type SearchResponse = original.SearchResponse
type BasicSearchResultsAnswer = original.BasicSearchResultsAnswer
type SearchResultsAnswer = original.SearchResultsAnswer
type BasicStructuredValue = original.BasicStructuredValue
type StructuredValue = original.StructuredValue
type BasicThing = original.BasicThing
type Thing = original.Thing
type TouristAttraction = original.TouristAttraction
func UserAgent() string {
return original.UserAgent() + " profiles/latest"
}
func Version() string {
return original.Version()
}