cloudapi: Add azure-sap-rhui support to cloudapi

and Update openapi.v2.gen.go
by running `./tools/prepare-source.sh` which runs `go generate ./...`
among other things.
This commit is contained in:
Brian C. Lane 2022-10-31 13:59:15 -07:00 committed by Tomáš Hozza
parent a00cde7424
commit a1a3e5ba2d
3 changed files with 75 additions and 68 deletions

View file

@ -474,6 +474,8 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
case ImageTypesAzure:
fallthrough
case ImageTypesAzureRhui:
fallthrough
case ImageTypesAzureSapRhui:
var azureUploadOptions AzureUploadOptions
jsonUploadOptions, err := json.Marshal(*ir.UploadOptions)
if err != nil {
@ -563,6 +565,8 @@ func imageTypeFromApiImageType(it ImageTypes, arch distro.Arch) string {
return "vhd"
case ImageTypesAzureRhui:
return "azure-rhui"
case ImageTypesAzureSapRhui:
return "azure-sap-rhui"
case ImageTypesGuestImage:
return "qcow2"
case ImageTypesVsphere: