Skip to content

Commit

Permalink
Generated from 984c12a568b2dd36acb521eb3b1c00fbd5b42995
Browse files Browse the repository at this point in the history
Update CognitiveService ComputerVision Swagger for new extensions (#1)

* Merged PR 17875: Add new languages

Add new languages

Also tidy up the enum definition so that AutoRest generates C# that actually compiles

* Merged PR 17942: Replace fancy quotes with plain single quotes

Make javac compile without complaint even without setting the codepage to utf-8 by dropping the gratuitous typographic quotes.

* Merged PR 17956: Rename url argument for overloaded endpoint to imageUrl

This name will become the name of the argument in Python.  Since you can used named arguments in Python, give them less ambiguous names.

* Changes to make --azure-validator run more cleanly

Errors Fixed
* XmsExamplesRequired/D5001/Documentation (7)
* XmsPathsMustOverloadPaths/R2058/SDKViolation (7)

Errors Ignored
* SecurityDefinitionsStructure/R2054/SDKViolation (1) - API Key scheme for Cognitive Services
* APIVersionPattern/R3012/ARMViolation (1) - Keeping with the Cognitive Services numbering scheme
* OperationsAPIImplementation/R3023/ARMViolation (1) - Not sure what this is

Warnings Fixed
* XmsEnumValidation/R2018/SDKViolation (1)
* DescriptionAndTitleMissing/R4000/SDKViolation (1)

Warnings Ignored
* DescriptionAndTitleMissing/R4000/SDKViolation (35) - description is contained in #ref
* EnumInsteadOfBoolean/R3018/ARMViolation (5) - fix would be a breaking change
* ListInOperationName/R1003/SDKViolation (1) - fix would be a breaking change
* LongRunningOperationsWithLongRunningExtension/R2007/SDKViolation (2) - endpoint will not ultimately yield a 200, as this extension would require
* NonApplicationJsonType/R2004/ARMViolation (15) - fix would be breaking change
* PageableOperation/R2029/SDKViolation (1) - not actually pageable
* ParameterNotDefinedInGlobalParameters/R2015/SDKViolation (1) - All our own parameters specify x-ms-parameter-location
* PostOperationIdContainsUrlVerb/R2066/SDKViolation (7) - fix would be breaking change
  • Loading branch information
AutorestCI committed May 17, 2018
1 parent c765d70 commit 054b219
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 196 deletions.
64 changes: 27 additions & 37 deletions profiles/latest/cognitiveservices/computervision/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,43 +78,36 @@ const (
Male Gender = original.Male
)

type Language1 = original.Language1

const (
En Language1 = original.En
Zh Language1 = original.Zh
)

type OcrLanguages = original.OcrLanguages

const (
OcrLanguagesAr OcrLanguages = original.OcrLanguagesAr
OcrLanguagesCs OcrLanguages = original.OcrLanguagesCs
OcrLanguagesDa OcrLanguages = original.OcrLanguagesDa
OcrLanguagesDe OcrLanguages = original.OcrLanguagesDe
OcrLanguagesEl OcrLanguages = original.OcrLanguagesEl
OcrLanguagesEn OcrLanguages = original.OcrLanguagesEn
OcrLanguagesEs OcrLanguages = original.OcrLanguagesEs
OcrLanguagesFi OcrLanguages = original.OcrLanguagesFi
OcrLanguagesFr OcrLanguages = original.OcrLanguagesFr
OcrLanguagesHu OcrLanguages = original.OcrLanguagesHu
OcrLanguagesIt OcrLanguages = original.OcrLanguagesIt
OcrLanguagesJa OcrLanguages = original.OcrLanguagesJa
OcrLanguagesKo OcrLanguages = original.OcrLanguagesKo
OcrLanguagesNb OcrLanguages = original.OcrLanguagesNb
OcrLanguagesNl OcrLanguages = original.OcrLanguagesNl
OcrLanguagesPl OcrLanguages = original.OcrLanguagesPl
OcrLanguagesPt OcrLanguages = original.OcrLanguagesPt
OcrLanguagesRo OcrLanguages = original.OcrLanguagesRo
OcrLanguagesRu OcrLanguages = original.OcrLanguagesRu
OcrLanguagesSk OcrLanguages = original.OcrLanguagesSk
OcrLanguagesSrCyrl OcrLanguages = original.OcrLanguagesSrCyrl
OcrLanguagesSrLatn OcrLanguages = original.OcrLanguagesSrLatn
OcrLanguagesSv OcrLanguages = original.OcrLanguagesSv
OcrLanguagesTr OcrLanguages = original.OcrLanguagesTr
OcrLanguagesUnk OcrLanguages = original.OcrLanguagesUnk
OcrLanguagesZhHans OcrLanguages = original.OcrLanguagesZhHans
OcrLanguagesZhHant OcrLanguages = original.OcrLanguagesZhHant
Ar OcrLanguages = original.Ar
Cs OcrLanguages = original.Cs
Da OcrLanguages = original.Da
De OcrLanguages = original.De
El OcrLanguages = original.El
En OcrLanguages = original.En
Es OcrLanguages = original.Es
Fi OcrLanguages = original.Fi
Fr OcrLanguages = original.Fr
Hu OcrLanguages = original.Hu
It OcrLanguages = original.It
Ja OcrLanguages = original.Ja
Ko OcrLanguages = original.Ko
Nb OcrLanguages = original.Nb
Nl OcrLanguages = original.Nl
Pl OcrLanguages = original.Pl
Pt OcrLanguages = original.Pt
Ro OcrLanguages = original.Ro
Ru OcrLanguages = original.Ru
Sk OcrLanguages = original.Sk
SrCyrl OcrLanguages = original.SrCyrl
SrLatn OcrLanguages = original.SrLatn
Sv OcrLanguages = original.Sv
Tr OcrLanguages = original.Tr
Unk OcrLanguages = original.Unk
ZhHans OcrLanguages = original.ZhHans
ZhHant OcrLanguages = original.ZhHant
)

type TextOperationStatusCodes = original.TextOperationStatusCodes
Expand Down Expand Up @@ -190,9 +183,6 @@ func PossibleErrorCodesValues() []ErrorCodes {
func PossibleGenderValues() []Gender {
return original.PossibleGenderValues()
}
func PossibleLanguage1Values() []Language1 {
return original.PossibleLanguage1Values()
}
func PossibleOcrLanguagesValues() []OcrLanguages {
return original.PossibleOcrLanguagesValues()
}
Expand Down
64 changes: 27 additions & 37 deletions profiles/preview/cognitiveservices/computervision/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,43 +78,36 @@ const (
Male Gender = original.Male
)

type Language1 = original.Language1

const (
En Language1 = original.En
Zh Language1 = original.Zh
)

type OcrLanguages = original.OcrLanguages

const (
OcrLanguagesAr OcrLanguages = original.OcrLanguagesAr
OcrLanguagesCs OcrLanguages = original.OcrLanguagesCs
OcrLanguagesDa OcrLanguages = original.OcrLanguagesDa
OcrLanguagesDe OcrLanguages = original.OcrLanguagesDe
OcrLanguagesEl OcrLanguages = original.OcrLanguagesEl
OcrLanguagesEn OcrLanguages = original.OcrLanguagesEn
OcrLanguagesEs OcrLanguages = original.OcrLanguagesEs
OcrLanguagesFi OcrLanguages = original.OcrLanguagesFi
OcrLanguagesFr OcrLanguages = original.OcrLanguagesFr
OcrLanguagesHu OcrLanguages = original.OcrLanguagesHu
OcrLanguagesIt OcrLanguages = original.OcrLanguagesIt
OcrLanguagesJa OcrLanguages = original.OcrLanguagesJa
OcrLanguagesKo OcrLanguages = original.OcrLanguagesKo
OcrLanguagesNb OcrLanguages = original.OcrLanguagesNb
OcrLanguagesNl OcrLanguages = original.OcrLanguagesNl
OcrLanguagesPl OcrLanguages = original.OcrLanguagesPl
OcrLanguagesPt OcrLanguages = original.OcrLanguagesPt
OcrLanguagesRo OcrLanguages = original.OcrLanguagesRo
OcrLanguagesRu OcrLanguages = original.OcrLanguagesRu
OcrLanguagesSk OcrLanguages = original.OcrLanguagesSk
OcrLanguagesSrCyrl OcrLanguages = original.OcrLanguagesSrCyrl
OcrLanguagesSrLatn OcrLanguages = original.OcrLanguagesSrLatn
OcrLanguagesSv OcrLanguages = original.OcrLanguagesSv
OcrLanguagesTr OcrLanguages = original.OcrLanguagesTr
OcrLanguagesUnk OcrLanguages = original.OcrLanguagesUnk
OcrLanguagesZhHans OcrLanguages = original.OcrLanguagesZhHans
OcrLanguagesZhHant OcrLanguages = original.OcrLanguagesZhHant
Ar OcrLanguages = original.Ar
Cs OcrLanguages = original.Cs
Da OcrLanguages = original.Da
De OcrLanguages = original.De
El OcrLanguages = original.El
En OcrLanguages = original.En
Es OcrLanguages = original.Es
Fi OcrLanguages = original.Fi
Fr OcrLanguages = original.Fr
Hu OcrLanguages = original.Hu
It OcrLanguages = original.It
Ja OcrLanguages = original.Ja
Ko OcrLanguages = original.Ko
Nb OcrLanguages = original.Nb
Nl OcrLanguages = original.Nl
Pl OcrLanguages = original.Pl
Pt OcrLanguages = original.Pt
Ro OcrLanguages = original.Ro
Ru OcrLanguages = original.Ru
Sk OcrLanguages = original.Sk
SrCyrl OcrLanguages = original.SrCyrl
SrLatn OcrLanguages = original.SrLatn
Sv OcrLanguages = original.Sv
Tr OcrLanguages = original.Tr
Unk OcrLanguages = original.Unk
ZhHans OcrLanguages = original.ZhHans
ZhHant OcrLanguages = original.ZhHant
)

type TextOperationStatusCodes = original.TextOperationStatusCodes
Expand Down Expand Up @@ -190,9 +183,6 @@ func PossibleErrorCodesValues() []ErrorCodes {
func PossibleGenderValues() []Gender {
return original.PossibleGenderValues()
}
func PossibleLanguage1Values() []Language1 {
return original.PossibleLanguage1Values()
}
func PossibleOcrLanguagesValues() []OcrLanguages {
return original.PossibleOcrLanguagesValues()
}
Expand Down
Loading

0 comments on commit 054b219

Please sign in to comment.