cloudapi: implement GCP target results and include UploadOptions
Return GCP-specific target results form the worker, similar as it is done for AWS. Extend Cloud API to allow GCP-specific upload Options. Modify Cloud API to return UploadOptions as part of the UploadStatus. Modify Cloud API integration test to check returned upload Options and upload Type. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
12880950e9
commit
319400c280
7 changed files with 161 additions and 60 deletions
|
|
@ -120,6 +120,7 @@ components:
|
|||
options:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/AWSUploadStatus'
|
||||
- $ref: '#/components/schemas/GCPUploadStatus'
|
||||
AWSUploadStatus:
|
||||
type: object
|
||||
required:
|
||||
|
|
@ -129,8 +130,14 @@ components:
|
|||
ami:
|
||||
type: string
|
||||
example: 'ami-0c830793775595d4b'
|
||||
region:
|
||||
type: string
|
||||
example: 'eu-west-1'
|
||||
GCPUploadStatus:
|
||||
type: object
|
||||
required:
|
||||
- project_id
|
||||
- image_name
|
||||
properties:
|
||||
project_id:
|
||||
type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue