API: Trigger, ScheduledOperation structural fixes

Change-Id: Iedbc49cf2cae2d8801f23d47a350469a94c88f75
This commit is contained in:
Yuval Brik 2016-04-10 15:39:31 +03:00
parent 87ca187067
commit ea70b59add

View File

@ -1085,12 +1085,19 @@ definitions:
name:
type: string
description: Display name of scheduled operation.
project_id:
type: string
format: UUID
operation_type:
type: string
description:
type: string
description: Description about the scheduled operation.
trigger_id:
type: string
format: UUID
operation_definition:
$ref: '#/definitions/OperationDefinition'
OperationStatus:
type: object
properties:
@ -1119,12 +1126,20 @@ definitions:
description: |
Type of the trigger. This defines what kind of trigger this
object defines the arguments for.
properties:
type: object
description: |
Trigger properties. Supply parameters for the trigger type.
TimeTrigger:
description: |
Trigger definition for time tigger.
allOf:
- $ref: '#/definitions/Trigger'
- type: object
properties:
property:
type: object
required: [ start_time, trigger_window, format ]
properties:
format:
type: string
@ -1134,7 +1149,6 @@ definitions:
trigger_window:
type: string
format: xsd:duration
required: [ start_time, trigger_window, format ]
Restore:
type: object
properties: