-
Notifications
You must be signed in to change notification settings - Fork 821
/
models.go
363 lines (342 loc) · 12.3 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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
//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 visualsearch
import original "github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0/visualsearch"
const (
DefaultEndpoint = original.DefaultEndpoint
)
type Currency = original.Currency
const (
AED Currency = original.AED
AFN Currency = original.AFN
ALL Currency = original.ALL
AMD Currency = original.AMD
ANG Currency = original.ANG
AOA Currency = original.AOA
ARS Currency = original.ARS
AUD Currency = original.AUD
AWG Currency = original.AWG
AZN Currency = original.AZN
BAM Currency = original.BAM
BBD Currency = original.BBD
BDT Currency = original.BDT
BGN Currency = original.BGN
BHD Currency = original.BHD
BIF Currency = original.BIF
BMD Currency = original.BMD
BND Currency = original.BND
BOB Currency = original.BOB
BOV Currency = original.BOV
BRL Currency = original.BRL
BSD Currency = original.BSD
BTN Currency = original.BTN
BWP Currency = original.BWP
BYR Currency = original.BYR
BZD Currency = original.BZD
CAD Currency = original.CAD
CDF Currency = original.CDF
CHE Currency = original.CHE
CHF Currency = original.CHF
CHW Currency = original.CHW
CLF Currency = original.CLF
CLP Currency = original.CLP
CNY Currency = original.CNY
COP Currency = original.COP
COU Currency = original.COU
CRC Currency = original.CRC
CUC Currency = original.CUC
CUP Currency = original.CUP
CVE Currency = original.CVE
CZK Currency = original.CZK
DJF Currency = original.DJF
DKK Currency = original.DKK
DOP Currency = original.DOP
DZD Currency = original.DZD
EGP Currency = original.EGP
ERN Currency = original.ERN
ETB Currency = original.ETB
EUR Currency = original.EUR
FJD Currency = original.FJD
FKP Currency = original.FKP
GBP Currency = original.GBP
GEL Currency = original.GEL
GHS Currency = original.GHS
GIP Currency = original.GIP
GMD Currency = original.GMD
GNF Currency = original.GNF
GTQ Currency = original.GTQ
GYD Currency = original.GYD
HKD Currency = original.HKD
HNL Currency = original.HNL
HRK Currency = original.HRK
HTG Currency = original.HTG
HUF Currency = original.HUF
IDR Currency = original.IDR
ILS Currency = original.ILS
INR Currency = original.INR
IQD Currency = original.IQD
IRR Currency = original.IRR
ISK Currency = original.ISK
JMD Currency = original.JMD
JOD Currency = original.JOD
JPY Currency = original.JPY
KES Currency = original.KES
KGS Currency = original.KGS
KHR Currency = original.KHR
KMF Currency = original.KMF
KPW Currency = original.KPW
KRW Currency = original.KRW
KWD Currency = original.KWD
KYD Currency = original.KYD
KZT Currency = original.KZT
LAK Currency = original.LAK
LBP Currency = original.LBP
LKR Currency = original.LKR
LRD Currency = original.LRD
LSL Currency = original.LSL
LYD Currency = original.LYD
MAD Currency = original.MAD
MDL Currency = original.MDL
MGA Currency = original.MGA
MKD Currency = original.MKD
MMK Currency = original.MMK
MNT Currency = original.MNT
MOP Currency = original.MOP
MRO Currency = original.MRO
MUR Currency = original.MUR
MVR Currency = original.MVR
MWK Currency = original.MWK
MXN Currency = original.MXN
MXV Currency = original.MXV
MYR Currency = original.MYR
MZN Currency = original.MZN
NAD Currency = original.NAD
NGN Currency = original.NGN
NIO Currency = original.NIO
NOK Currency = original.NOK
NPR Currency = original.NPR
NZD Currency = original.NZD
OMR Currency = original.OMR
PAB Currency = original.PAB
PEN Currency = original.PEN
PGK Currency = original.PGK
PHP Currency = original.PHP
PKR Currency = original.PKR
PLN Currency = original.PLN
PYG Currency = original.PYG
QAR Currency = original.QAR
RON Currency = original.RON
RSD Currency = original.RSD
RUB Currency = original.RUB
RWF Currency = original.RWF
SAR Currency = original.SAR
SBD Currency = original.SBD
SCR Currency = original.SCR
SDG Currency = original.SDG
SEK Currency = original.SEK
SGD Currency = original.SGD
SHP Currency = original.SHP
SLL Currency = original.SLL
SOS Currency = original.SOS
SRD Currency = original.SRD
SSP Currency = original.SSP
STD Currency = original.STD
SYP Currency = original.SYP
SZL Currency = original.SZL
THB Currency = original.THB
TJS Currency = original.TJS
TMT Currency = original.TMT
TND Currency = original.TND
TOP Currency = original.TOP
TRY Currency = original.TRY
TTD Currency = original.TTD
TWD Currency = original.TWD
TZS Currency = original.TZS
UAH Currency = original.UAH
UGX Currency = original.UGX
USD Currency = original.USD
UYU Currency = original.UYU
UZS Currency = original.UZS
VEF Currency = original.VEF
VND Currency = original.VND
VUV Currency = original.VUV
WST Currency = original.WST
XAF Currency = original.XAF
XCD Currency = original.XCD
XOF Currency = original.XOF
XPF Currency = original.XPF
YER Currency = original.YER
ZAR Currency = original.ZAR
ZMW Currency = original.ZMW
)
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 ItemAvailability = original.ItemAvailability
const (
Discontinued ItemAvailability = original.Discontinued
InStock ItemAvailability = original.InStock
InStoreOnly ItemAvailability = original.InStoreOnly
LimitedAvailability ItemAvailability = original.LimitedAvailability
OnlineOnly ItemAvailability = original.OnlineOnly
OutOfStock ItemAvailability = original.OutOfStock
PreOrder ItemAvailability = original.PreOrder
SoldOut ItemAvailability = original.SoldOut
)
type SafeSearch = original.SafeSearch
const (
Moderate SafeSearch = original.Moderate
Off SafeSearch = original.Off
Strict SafeSearch = original.Strict
)
type Type = original.Type
const (
TypeAction Type = original.TypeAction
TypeAggregateOffer Type = original.TypeAggregateOffer
TypeCreativeWork Type = original.TypeCreativeWork
TypeErrorResponse Type = original.TypeErrorResponse
TypeIdentifiable Type = original.TypeIdentifiable
TypeImageAction Type = original.TypeImageAction
TypeImageEntityAction Type = original.TypeImageEntityAction
TypeImageKnowledge Type = original.TypeImageKnowledge
TypeImageModuleAction Type = original.TypeImageModuleAction
TypeImageObject Type = original.TypeImageObject
TypeImageRecipesAction Type = original.TypeImageRecipesAction
TypeImageRelatedSearchesAction Type = original.TypeImageRelatedSearchesAction
TypeImageShoppingSourcesAction Type = original.TypeImageShoppingSourcesAction
TypeImageTag Type = original.TypeImageTag
TypeIntangible Type = original.TypeIntangible
TypeMediaObject Type = original.TypeMediaObject
TypeNormalizedQuadrilateral Type = original.TypeNormalizedQuadrilateral
TypeOffer Type = original.TypeOffer
TypeOrganization Type = original.TypeOrganization
TypePerson Type = original.TypePerson
TypePoint2D Type = original.TypePoint2D
TypeRecipe Type = original.TypeRecipe
TypeResponse Type = original.TypeResponse
TypeResponseBase Type = original.TypeResponseBase
TypeStructuredValue Type = original.TypeStructuredValue
TypeThing Type = original.TypeThing
)
type TypeBasicPropertiesItem = original.TypeBasicPropertiesItem
const (
TypeAggregateRating TypeBasicPropertiesItem = original.TypeAggregateRating
TypePropertiesItem TypeBasicPropertiesItem = original.TypePropertiesItem
TypeRating TypeBasicPropertiesItem = original.TypeRating
)
type Action = original.Action
type AggregateOffer = original.AggregateOffer
type AggregateRating = original.AggregateRating
type BaseClient = original.BaseClient
type BasicAction = original.BasicAction
type BasicCreativeWork = original.BasicCreativeWork
type BasicIdentifiable = original.BasicIdentifiable
type BasicImageAction = original.BasicImageAction
type BasicIntangible = original.BasicIntangible
type BasicMediaObject = original.BasicMediaObject
type BasicOffer = original.BasicOffer
type BasicPropertiesItem = original.BasicPropertiesItem
type BasicRating = original.BasicRating
type BasicResponse = original.BasicResponse
type BasicResponseBase = original.BasicResponseBase
type BasicStructuredValue = original.BasicStructuredValue
type BasicThing = original.BasicThing
type CreativeWork = original.CreativeWork
type CropArea = original.CropArea
type Error = original.Error
type ErrorResponse = original.ErrorResponse
type Filters = original.Filters
type Identifiable = original.Identifiable
type ImageAction = original.ImageAction
type ImageEntityAction = original.ImageEntityAction
type ImageInfo = original.ImageInfo
type ImageKnowledge = original.ImageKnowledge
type ImageModuleAction = original.ImageModuleAction
type ImageObject = original.ImageObject
type ImageRecipesAction = original.ImageRecipesAction
type ImageRelatedSearchesAction = original.ImageRelatedSearchesAction
type ImageShoppingSourcesAction = original.ImageShoppingSourcesAction
type ImageTag = original.ImageTag
type ImageTagRegion = original.ImageTagRegion
type ImagesClient = original.ImagesClient
type ImagesImageMetadata = original.ImagesImageMetadata
type ImagesModule = original.ImagesModule
type Intangible = original.Intangible
type KnowledgeRequest = original.KnowledgeRequest
type MediaObject = original.MediaObject
type NormalizedQuadrilateral = original.NormalizedQuadrilateral
type Offer = original.Offer
type Organization = original.Organization
type Person = original.Person
type Point2D = original.Point2D
type PropertiesItem = original.PropertiesItem
type Query = original.Query
type Rating = original.Rating
type Recipe = original.Recipe
type RecipesModule = original.RecipesModule
type RelatedSearchesModule = original.RelatedSearchesModule
type Request = original.Request
type Response = original.Response
type ResponseBase = original.ResponseBase
type StructuredValue = original.StructuredValue
type Thing = original.Thing
func New() BaseClient {
return original.New()
}
func NewImagesClient() ImagesClient {
return original.NewImagesClient()
}
func NewWithoutDefaults(endpoint string) BaseClient {
return original.NewWithoutDefaults(endpoint)
}
func PossibleCurrencyValues() []Currency {
return original.PossibleCurrencyValues()
}
func PossibleErrorCodeValues() []ErrorCode {
return original.PossibleErrorCodeValues()
}
func PossibleErrorSubCodeValues() []ErrorSubCode {
return original.PossibleErrorSubCodeValues()
}
func PossibleItemAvailabilityValues() []ItemAvailability {
return original.PossibleItemAvailabilityValues()
}
func PossibleSafeSearchValues() []SafeSearch {
return original.PossibleSafeSearchValues()
}
func PossibleTypeBasicPropertiesItemValues() []TypeBasicPropertiesItem {
return original.PossibleTypeBasicPropertiesItemValues()
}
func PossibleTypeValues() []Type {
return original.PossibleTypeValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}