forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 2
/
models.go
287 lines (260 loc) · 13.4 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
//go:build go1.9
// +build go1.9
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/eng/tools/profileBuilder
package entitysearch
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/entitysearch"
const (
DefaultEndpoint = original.DefaultEndpoint
)
type AnswerType = original.AnswerType
const (
AnswerTypeEntities AnswerType = original.AnswerTypeEntities
AnswerTypePlaces AnswerType = original.AnswerTypePlaces
)
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
)
type EntityScenario = original.EntityScenario
const (
EntityScenarioDisambiguationItem EntityScenario = original.EntityScenarioDisambiguationItem
EntityScenarioDominantEntity EntityScenario = original.EntityScenarioDominantEntity
EntityScenarioListItem EntityScenario = original.EntityScenarioListItem
)
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
)
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
)
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
)
type ResponseFormat = original.ResponseFormat
const (
JSON ResponseFormat = original.JSON
JSONLd ResponseFormat = original.JSONLd
)
type SafeSearch = original.SafeSearch
const (
Moderate SafeSearch = original.Moderate
Off SafeSearch = original.Off
Strict SafeSearch = original.Strict
)
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
)
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
)
type Airport = original.Airport
type Answer = original.Answer
type BaseClient = original.BaseClient
type BasicAnswer = original.BasicAnswer
type BasicCivicStructure = original.BasicCivicStructure
type BasicContractualRulesAttribution = original.BasicContractualRulesAttribution
type BasicContractualRulesContractualRule = original.BasicContractualRulesContractualRule
type BasicCreativeWork = original.BasicCreativeWork
type BasicEntertainmentBusiness = original.BasicEntertainmentBusiness
type BasicFoodEstablishment = original.BasicFoodEstablishment
type BasicIdentifiable = original.BasicIdentifiable
type BasicIntangible = original.BasicIntangible
type BasicLocalBusiness = original.BasicLocalBusiness
type BasicLodgingBusiness = original.BasicLodgingBusiness
type BasicMediaObject = original.BasicMediaObject
type BasicPlace = original.BasicPlace
type BasicResponse = original.BasicResponse
type BasicResponseBase = original.BasicResponseBase
type BasicSearchResultsAnswer = original.BasicSearchResultsAnswer
type BasicStructuredValue = original.BasicStructuredValue
type BasicThing = original.BasicThing
type CivicStructure = original.CivicStructure
type ContractualRulesAttribution = original.ContractualRulesAttribution
type ContractualRulesContractualRule = original.ContractualRulesContractualRule
type ContractualRulesLicenseAttribution = original.ContractualRulesLicenseAttribution
type ContractualRulesLinkAttribution = original.ContractualRulesLinkAttribution
type ContractualRulesMediaAttribution = original.ContractualRulesMediaAttribution
type ContractualRulesTextAttribution = original.ContractualRulesTextAttribution
type CreativeWork = original.CreativeWork
type EntertainmentBusiness = original.EntertainmentBusiness
type Entities = original.Entities
type EntitiesClient = original.EntitiesClient
type EntitiesEntityPresentationInfo = original.EntitiesEntityPresentationInfo
type Error = original.Error
type ErrorResponse = original.ErrorResponse
type FoodEstablishment = original.FoodEstablishment
type Hotel = original.Hotel
type Identifiable = original.Identifiable
type ImageObject = original.ImageObject
type Intangible = original.Intangible
type License = original.License
type LocalBusiness = original.LocalBusiness
type LodgingBusiness = original.LodgingBusiness
type MediaObject = original.MediaObject
type MovieTheater = original.MovieTheater
type Organization = original.Organization
type Place = original.Place
type Places = original.Places
type PostalAddress = original.PostalAddress
type QueryContext = original.QueryContext
type Response = original.Response
type ResponseBase = original.ResponseBase
type Restaurant = original.Restaurant
type SearchResponse = original.SearchResponse
type SearchResultsAnswer = original.SearchResultsAnswer
type StructuredValue = original.StructuredValue
type Thing = original.Thing
type TouristAttraction = original.TouristAttraction
func New() BaseClient {
return original.New()
}
func NewEntitiesClient() EntitiesClient {
return original.NewEntitiesClient()
}
func NewWithoutDefaults(endpoint string) BaseClient {
return original.NewWithoutDefaults(endpoint)
}
func PossibleAnswerTypeValues() []AnswerType {
return original.PossibleAnswerTypeValues()
}
func PossibleEntityQueryScenarioValues() []EntityQueryScenario {
return original.PossibleEntityQueryScenarioValues()
}
func PossibleEntityScenarioValues() []EntityScenario {
return original.PossibleEntityScenarioValues()
}
func PossibleEntityTypeValues() []EntityType {
return original.PossibleEntityTypeValues()
}
func PossibleErrorCodeValues() []ErrorCode {
return original.PossibleErrorCodeValues()
}
func PossibleErrorSubCodeValues() []ErrorSubCode {
return original.PossibleErrorSubCodeValues()
}
func PossibleResponseFormatValues() []ResponseFormat {
return original.PossibleResponseFormatValues()
}
func PossibleSafeSearchValues() []SafeSearch {
return original.PossibleSafeSearchValues()
}
func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
return original.PossibleTypeBasicResponseBaseValues()
}
func PossibleTypeValues() []Type {
return original.PossibleTypeValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}