Skip to content

Commit

Permalink
Generated from bd6c66b615b94480a1458dde3a8bc42f3a689548
Browse files Browse the repository at this point in the history
ComputerVision - collection of fixes

* fix ocr language parameter to fix [bug](Azure/azure-sdk-for-net#4083)
* language parameter missing for /tag path
* language parameter missing for /models/*/analyze path
* make /models/*/analyze return a more generic type
* add specific types for /models/*/analyze to return for current models
  • Loading branch information
AutorestCI committed May 29, 2018
1 parent f7207ed commit 6097d1d
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 115 deletions.
14 changes: 3 additions & 11 deletions profiles/latest/cognitiveservices/computervision/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ const (
Landmarks Details = original.Landmarks
)

type DomainModels = original.DomainModels

const (
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
)

type ErrorCodes = original.ErrorCodes

const (
Expand Down Expand Up @@ -135,8 +128,8 @@ type AdultInfo = original.AdultInfo
type Category = original.Category
type CategoryDetail = original.CategoryDetail
type CelebritiesModel = original.CelebritiesModel
type CelebrityResults = original.CelebrityResults
type ColorInfo = original.ColorInfo
type DomainModelResult = original.DomainModelResult
type DomainModelResults = original.DomainModelResults
type Error = original.Error
type FaceDescription = original.FaceDescription
Expand All @@ -149,6 +142,8 @@ type ImageMetadata = original.ImageMetadata
type ImageTag = original.ImageTag
type ImageType = original.ImageType
type ImageURL = original.ImageURL
type LandmarkResults = original.LandmarkResults
type LandmarkResultsLandmarksItem = original.LandmarkResultsLandmarksItem
type Line = original.Line
type ListModelsResult = original.ListModelsResult
type ModelDescription = original.ModelDescription
Expand All @@ -174,9 +169,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
func PossibleDetailsValues() []Details {
return original.PossibleDetailsValues()
}
func PossibleDomainModelsValues() []DomainModels {
return original.PossibleDomainModelsValues()
}
func PossibleErrorCodesValues() []ErrorCodes {
return original.PossibleErrorCodesValues()
}
Expand Down
14 changes: 3 additions & 11 deletions profiles/preview/cognitiveservices/computervision/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ const (
Landmarks Details = original.Landmarks
)

type DomainModels = original.DomainModels

const (
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
)

type ErrorCodes = original.ErrorCodes

const (
Expand Down Expand Up @@ -135,8 +128,8 @@ type AdultInfo = original.AdultInfo
type Category = original.Category
type CategoryDetail = original.CategoryDetail
type CelebritiesModel = original.CelebritiesModel
type CelebrityResults = original.CelebrityResults
type ColorInfo = original.ColorInfo
type DomainModelResult = original.DomainModelResult
type DomainModelResults = original.DomainModelResults
type Error = original.Error
type FaceDescription = original.FaceDescription
Expand All @@ -149,6 +142,8 @@ type ImageMetadata = original.ImageMetadata
type ImageTag = original.ImageTag
type ImageType = original.ImageType
type ImageURL = original.ImageURL
type LandmarkResults = original.LandmarkResults
type LandmarkResultsLandmarksItem = original.LandmarkResultsLandmarksItem
type Line = original.Line
type ListModelsResult = original.ListModelsResult
type ModelDescription = original.ModelDescription
Expand All @@ -174,9 +169,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
func PossibleDetailsValues() []Details {
return original.PossibleDetailsValues()
}
func PossibleDomainModelsValues() []DomainModels {
return original.PossibleDomainModelsValues()
}
func PossibleErrorCodesValues() []ErrorCodes {
return original.PossibleErrorCodesValues()
}
Expand Down
57 changes: 45 additions & 12 deletions services/cognitiveservices/v1.0/computervision/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 29 additions & 81 deletions services/cognitiveservices/v1.0/computervision/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6097d1d

Please sign in to comment.